]> git.neil.brown.name Git - history.git/commitdiff
USB: moved put_bus to its proper place (as the last thing we do shutting down.)
authorGreg Kroah-Hartman <greg@kroah.com>
Tue, 13 Aug 2002 07:06:15 +0000 (00:06 -0700)
committerGreg Kroah-Hartman <greg@kroah.com>
Tue, 13 Aug 2002 07:06:15 +0000 (00:06 -0700)
drivers/usb/core/usb.c

index 03fdc5368f7db7228722957dfae3a2bbb0c492d1..0defe64d70768a6764bfd54ad1387008142f13c0 100644 (file)
@@ -1641,10 +1641,10 @@ static int __init usb_init(void)
  */
 static void __exit usb_exit(void)
 {
-       put_bus(&usb_bus_type);
        usb_major_cleanup();
        usbfs_cleanup();
        usb_hub_cleanup();
+       put_bus(&usb_bus_type);
 }
 
 subsys_initcall(usb_init);