From: Russell King Date: Thu, 5 Jan 2006 14:34:38 +0000 (+0000) Subject: [PATCH] Add parisc_bus_type probe and remove methods X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ad3ed31c682d956d2187e562635c55c8c74c1021;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git [PATCH] Add parisc_bus_type probe and remove methods Signed-off-by: Russell King Acked-by: Matthew Wilcox Signed-off-by: Greg Kroah-Hartman --- diff --git a/arch/parisc/kernel/drivers.c b/arch/parisc/kernel/drivers.c index 1eaa0d37f677..2d804e2d16d1 100644 --- a/arch/parisc/kernel/drivers.c +++ b/arch/parisc/kernel/drivers.c @@ -173,8 +173,6 @@ int register_parisc_driver(struct parisc_driver *driver) WARN_ON(driver->drv.probe != NULL); WARN_ON(driver->drv.remove != NULL); - driver->drv.probe = parisc_driver_probe; - driver->drv.remove = parisc_driver_remove; driver->drv.name = driver->name; return driver_register(&driver->drv); @@ -575,6 +573,8 @@ struct bus_type parisc_bus_type = { .name = "parisc", .match = parisc_generic_match, .dev_attrs = parisc_device_attrs, + .probe = parisc_driver_probe, + .remove = parisc_driver_remove, }; /**