summaryrefslogtreecommitdiffstats
path: root/arch/powerpc
diff options
context:
space:
mode:
authorRussell King <rmk@arm.linux.org.uk>2006-01-05 15:36:16 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2006-01-13 20:26:06 +0100
commit79f9fb8886d901fd549793a4ad632ece51c68405 (patch)
treef51fb4fd185efde0cf2c82245ee1f9a67848d062 /arch/powerpc
parent[PATCH] Add sh_bus_type probe and remove methods (diff)
downloadlinux-79f9fb8886d901fd549793a4ad632ece51c68405.tar.xz
linux-79f9fb8886d901fd549793a4ad632ece51c68405.zip
[PATCH] Add of_platform_bus_type probe and remove methods
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'arch/powerpc')
-rw-r--r--arch/powerpc/kernel/of_device.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/kernel/of_device.c b/arch/powerpc/kernel/of_device.c
index 7065e40e2f42..22d83d4d1af5 100644
--- a/arch/powerpc/kernel/of_device.c
+++ b/arch/powerpc/kernel/of_device.c
@@ -132,6 +132,8 @@ static int of_device_resume(struct device * dev)
struct bus_type of_platform_bus_type = {
.name = "of_platform",
.match = of_platform_bus_match,
+ .probe = of_device_probe,
+ .remove = of_device_remove,
.suspend = of_device_suspend,
.resume = of_device_resume,
};
@@ -150,8 +152,6 @@ int of_register_driver(struct of_platform_driver *drv)
/* initialize common driver fields */
drv->driver.name = drv->name;
drv->driver.bus = &of_platform_bus_type;
- drv->driver.probe = of_device_probe;
- drv->driver.remove = of_device_remove;
/* register with core */
count = driver_register(&drv->driver);