diff options
Diffstat (limited to 'drivers/usb/host/uhci-hcd.c')
-rw-r--r-- | drivers/usb/host/uhci-hcd.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/drivers/usb/host/uhci-hcd.c b/drivers/usb/host/uhci-hcd.c index 7b48567622ef..eb4eab98e8bf 100644 --- a/drivers/usb/host/uhci-hcd.c +++ b/drivers/usb/host/uhci-hcd.c | |||
@@ -22,7 +22,6 @@ | |||
22 | * | 22 | * |
23 | */ | 23 | */ |
24 | 24 | ||
25 | #include <linux/config.h> | ||
26 | #include <linux/module.h> | 25 | #include <linux/module.h> |
27 | #include <linux/pci.h> | 26 | #include <linux/pci.h> |
28 | #include <linux/kernel.h> | 27 | #include <linux/kernel.h> |
@@ -735,6 +734,10 @@ static int uhci_suspend(struct usb_hcd *hcd, pm_message_t message) | |||
735 | 734 | ||
736 | /* FIXME: Enable non-PME# remote wakeup? */ | 735 | /* FIXME: Enable non-PME# remote wakeup? */ |
737 | 736 | ||
737 | /* make sure snapshot being resumed re-enumerates everything */ | ||
738 | if (message.event == PM_EVENT_PRETHAW) | ||
739 | uhci_hc_died(uhci); | ||
740 | |||
738 | done_okay: | 741 | done_okay: |
739 | clear_bit(HCD_FLAG_HW_ACCESSIBLE, &hcd->flags); | 742 | clear_bit(HCD_FLAG_HW_ACCESSIBLE, &hcd->flags); |
740 | done: | 743 | done: |
@@ -910,8 +913,7 @@ static int __init uhci_hcd_init(void) | |||
910 | return 0; | 913 | return 0; |
911 | 914 | ||
912 | init_failed: | 915 | init_failed: |
913 | if (kmem_cache_destroy(uhci_up_cachep)) | 916 | kmem_cache_destroy(uhci_up_cachep); |
914 | warn("not all urb_privs were freed!"); | ||
915 | 917 | ||
916 | up_failed: | 918 | up_failed: |
917 | debugfs_remove(uhci_debugfs_root); | 919 | debugfs_remove(uhci_debugfs_root); |
@@ -927,10 +929,7 @@ errbuf_failed: | |||
927 | static void __exit uhci_hcd_cleanup(void) | 929 | static void __exit uhci_hcd_cleanup(void) |
928 | { | 930 | { |
929 | pci_unregister_driver(&uhci_pci_driver); | 931 | pci_unregister_driver(&uhci_pci_driver); |
930 | 932 | kmem_cache_destroy(uhci_up_cachep); | |
931 | if (kmem_cache_destroy(uhci_up_cachep)) | ||
932 | warn("not all urb_privs were freed!"); | ||
933 | |||
934 | debugfs_remove(uhci_debugfs_root); | 933 | debugfs_remove(uhci_debugfs_root); |
935 | kfree(errbuf); | 934 | kfree(errbuf); |
936 | } | 935 | } |