Commit ad3ed31c authored by Russell King's avatar Russell King Committed by Greg Kroah-Hartman

[PATCH] Add parisc_bus_type probe and remove methods

Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
Acked-by: default avatarMatthew Wilcox <matthew@wil.cx>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 83dfb8b6
...@@ -173,8 +173,6 @@ int register_parisc_driver(struct parisc_driver *driver) ...@@ -173,8 +173,6 @@ int register_parisc_driver(struct parisc_driver *driver)
WARN_ON(driver->drv.probe != NULL); WARN_ON(driver->drv.probe != NULL);
WARN_ON(driver->drv.remove != NULL); WARN_ON(driver->drv.remove != NULL);
driver->drv.probe = parisc_driver_probe;
driver->drv.remove = parisc_driver_remove;
driver->drv.name = driver->name; driver->drv.name = driver->name;
return driver_register(&driver->drv); return driver_register(&driver->drv);
...@@ -575,6 +573,8 @@ struct bus_type parisc_bus_type = { ...@@ -575,6 +573,8 @@ struct bus_type parisc_bus_type = {
.name = "parisc", .name = "parisc",
.match = parisc_generic_match, .match = parisc_generic_match,
.dev_attrs = parisc_device_attrs, .dev_attrs = parisc_device_attrs,
.probe = parisc_driver_probe,
.remove = parisc_driver_remove,
}; };
/** /**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment