diff options
Diffstat (limited to 'drivers/usb/host/ohci-hcd.c')
-rw-r--r-- | drivers/usb/host/ohci-hcd.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/usb/host/ohci-hcd.c b/drivers/usb/host/ohci-hcd.c index e3af3ac4416a..a4b12404ae08 100644 --- a/drivers/usb/host/ohci-hcd.c +++ b/drivers/usb/host/ohci-hcd.c | |||
@@ -795,7 +795,6 @@ static int ohci_restart (struct ohci_hcd *ohci) | |||
795 | int temp; | 795 | int temp; |
796 | int i; | 796 | int i; |
797 | struct urb_priv *priv; | 797 | struct urb_priv *priv; |
798 | struct usb_device *root = ohci_to_hcd(ohci)->self.root_hub; | ||
799 | 798 | ||
800 | /* mark any devices gone, so they do nothing till khubd disconnects. | 799 | /* mark any devices gone, so they do nothing till khubd disconnects. |
801 | * recycle any "live" eds/tds (and urbs) right away. | 800 | * recycle any "live" eds/tds (and urbs) right away. |
@@ -804,11 +803,7 @@ static int ohci_restart (struct ohci_hcd *ohci) | |||
804 | */ | 803 | */ |
805 | spin_lock_irq(&ohci->lock); | 804 | spin_lock_irq(&ohci->lock); |
806 | disable (ohci); | 805 | disable (ohci); |
807 | for (i = 0; i < root->maxchild; i++) { | 806 | usb_root_hub_lost_power(ohci_to_hcd(ohci)->self.root_hub); |
808 | if (root->children [i]) | ||
809 | usb_set_device_state (root->children[i], | ||
810 | USB_STATE_NOTATTACHED); | ||
811 | } | ||
812 | if (!list_empty (&ohci->pending)) | 807 | if (!list_empty (&ohci->pending)) |
813 | ohci_dbg(ohci, "abort schedule...\n"); | 808 | ohci_dbg(ohci, "abort schedule...\n"); |
814 | list_for_each_entry (priv, &ohci->pending, pending) { | 809 | list_for_each_entry (priv, &ohci->pending, pending) { |