Commit 04013dc6 authored by Patrick Mochel's avatar Patrick Mochel

driver model(usb): change calls of remove_driver() to driver_unregister().

parent 10e01163
...@@ -208,7 +208,7 @@ void usb_deregister(struct usb_driver *driver) ...@@ -208,7 +208,7 @@ void usb_deregister(struct usb_driver *driver)
{ {
info("deregistering driver %s", driver->name); info("deregistering driver %s", driver->name);
remove_driver (&driver->driver); driver_unregister (&driver->driver);
usbfs_update_special(); usbfs_update_special();
} }
...@@ -1394,7 +1394,7 @@ static void __exit usb_exit(void) ...@@ -1394,7 +1394,7 @@ static void __exit usb_exit(void)
if (nousb) if (nousb)
return; return;
remove_driver(&usb_generic_driver); driver_unregister(&usb_generic_driver);
usb_major_cleanup(); usb_major_cleanup();
usbfs_cleanup(); usbfs_cleanup();
usb_hub_cleanup(); usb_hub_cleanup();
......
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