Commit 6c3ec486 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

USB: moved put_bus to its proper place (as the last thing we do shutting down.)

parent 17f736b6
...@@ -1641,10 +1641,10 @@ static int __init usb_init(void) ...@@ -1641,10 +1641,10 @@ static int __init usb_init(void)
*/ */
static void __exit usb_exit(void) static void __exit usb_exit(void)
{ {
put_bus(&usb_bus_type);
usb_major_cleanup(); usb_major_cleanup();
usbfs_cleanup(); usbfs_cleanup();
usb_hub_cleanup(); usb_hub_cleanup();
put_bus(&usb_bus_type);
} }
subsys_initcall(usb_init); subsys_initcall(usb_init);
......
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