[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>
This commit is contained in:
Stephen Rothwell 2008-01-14 17:46:48 +11:00 коммит произвёл Paul Mackerras
Родитель ab1f89b388
Коммит 745c2ef2e7
1 изменённых файлов: 2 добавлений и 5 удалений

Просмотреть файл

@ -198,16 +198,13 @@ int ibmebus_register_driver(struct of_platform_driver *drv)
/* If the driver uses devices that ibmebus doesn't know, add them */ /* If the driver uses devices that ibmebus doesn't know, add them */
ibmebus_create_devices(drv->match_table); ibmebus_create_devices(drv->match_table);
drv->driver.name = drv->name; return of_register_driver(drv, &ibmebus_bus_type);
drv->driver.bus = &ibmebus_bus_type;
return driver_register(&drv->driver);
} }
EXPORT_SYMBOL(ibmebus_register_driver); EXPORT_SYMBOL(ibmebus_register_driver);
void ibmebus_unregister_driver(struct of_platform_driver *drv) void ibmebus_unregister_driver(struct of_platform_driver *drv)
{ {
driver_unregister(&drv->driver); of_unregister_driver(drv);
} }
EXPORT_SYMBOL(ibmebus_unregister_driver); EXPORT_SYMBOL(ibmebus_unregister_driver);