aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/usb/core/hub.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c
index 8aea8559bec2..702023075310 100644
--- a/drivers/usb/core/hub.c
+++ b/drivers/usb/core/hub.c
@@ -2426,19 +2426,6 @@ static void hub_port_connect_change(struct usb_hub *hub, int port1,
2426 return; 2426 return;
2427 } 2427 }
2428 2428
2429#ifdef CONFIG_USB_SUSPEND
2430 /* If something is connected, but the port is suspended, wake it up. */
2431 if (portstatus & USB_PORT_STAT_SUSPEND) {
2432 status = hub_port_resume(hub, port1, NULL);
2433 if (status < 0) {
2434 dev_dbg(hub_dev,
2435 "can't clear suspend on port %d; %d\n",
2436 port1, status);
2437 goto done;
2438 }
2439 }
2440#endif
2441
2442 for (i = 0; i < SET_CONFIG_TRIES; i++) { 2429 for (i = 0; i < SET_CONFIG_TRIES; i++) {
2443 struct usb_device *udev; 2430 struct usb_device *udev;
2444 2431