diff options
Diffstat (limited to 'drivers/usb/core/hub.c')
-rw-r--r-- | drivers/usb/core/hub.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c index 1b17f636f49..24c411697d1 100644 --- a/drivers/usb/core/hub.c +++ b/drivers/usb/core/hub.c | |||
@@ -2482,6 +2482,7 @@ static void hub_port_connect_change(struct usb_hub *hub, int port1, | |||
2482 | { | 2482 | { |
2483 | struct usb_device *hdev = hub->hdev; | 2483 | struct usb_device *hdev = hub->hdev; |
2484 | struct device *hub_dev = hub->intfdev; | 2484 | struct device *hub_dev = hub->intfdev; |
2485 | struct usb_hcd *hcd = bus_to_hcd(hdev->bus); | ||
2485 | u16 wHubCharacteristics = le16_to_cpu(hub->descriptor->wHubCharacteristics); | 2486 | u16 wHubCharacteristics = le16_to_cpu(hub->descriptor->wHubCharacteristics); |
2486 | int status, i; | 2487 | int status, i; |
2487 | 2488 | ||
@@ -2645,6 +2646,8 @@ loop: | |||
2645 | 2646 | ||
2646 | done: | 2647 | done: |
2647 | hub_port_disable(hub, port1, 1); | 2648 | hub_port_disable(hub, port1, 1); |
2649 | if (hcd->driver->relinquish_port && !hub->hdev->parent) | ||
2650 | hcd->driver->relinquish_port(hcd, port1); | ||
2648 | } | 2651 | } |
2649 | 2652 | ||
2650 | static void hub_events(void) | 2653 | static void hub_events(void) |