diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2008-01-14 01:46:48 -0500 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2008-01-25 06:52:50 -0500 |
commit | 745c2ef2e7819ff7cee249b01e1030ef665ecde2 (patch) | |
tree | 7a05a9c474d0c174e5a5ec1046f282ab633c033d /arch/powerpc/kernel/ibmebus.c | |
parent | ab1f89b388732d8a7de6f9694d9d6bd32bff8d61 (diff) |
[POWERPC] Make ibmebus use of_(un)register_driver
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Acked-by: Joachim Fenkes <fenkes@de.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/kernel/ibmebus.c')
-rw-r--r-- | arch/powerpc/kernel/ibmebus.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/arch/powerpc/kernel/ibmebus.c b/arch/powerpc/kernel/ibmebus.c index fd5ae8d17c96..2f50bb5d00f9 100644 --- a/arch/powerpc/kernel/ibmebus.c +++ b/arch/powerpc/kernel/ibmebus.c | |||
@@ -198,16 +198,13 @@ int ibmebus_register_driver(struct of_platform_driver *drv) | |||
198 | /* If the driver uses devices that ibmebus doesn't know, add them */ | 198 | /* If the driver uses devices that ibmebus doesn't know, add them */ |
199 | ibmebus_create_devices(drv->match_table); | 199 | ibmebus_create_devices(drv->match_table); |
200 | 200 | ||
201 | drv->driver.name = drv->name; | 201 | return of_register_driver(drv, &ibmebus_bus_type); |
202 | drv->driver.bus = &ibmebus_bus_type; | ||
203 | |||
204 | return driver_register(&drv->driver); | ||
205 | } | 202 | } |
206 | EXPORT_SYMBOL(ibmebus_register_driver); | 203 | EXPORT_SYMBOL(ibmebus_register_driver); |
207 | 204 | ||
208 | void ibmebus_unregister_driver(struct of_platform_driver *drv) | 205 | void ibmebus_unregister_driver(struct of_platform_driver *drv) |
209 | { | 206 | { |
210 | driver_unregister(&drv->driver); | 207 | of_unregister_driver(drv); |
211 | } | 208 | } |
212 | EXPORT_SYMBOL(ibmebus_unregister_driver); | 209 | EXPORT_SYMBOL(ibmebus_unregister_driver); |
213 | 210 | ||