diff options
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/usb/core/hub.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c index 003cb6b1a6bf..46f5161c7891 100644 --- a/drivers/usb/core/hub.c +++ b/drivers/usb/core/hub.c | |||
| @@ -1732,8 +1732,10 @@ static int hub_probe(struct usb_interface *intf, const struct usb_device_id *id) | |||
| 1732 | * - If user has indicated to prevent autosuspend by passing | 1732 | * - If user has indicated to prevent autosuspend by passing |
| 1733 | * usbcore.autosuspend = -1 then keep autosuspend disabled. | 1733 | * usbcore.autosuspend = -1 then keep autosuspend disabled. |
| 1734 | */ | 1734 | */ |
| 1735 | #ifdef CONFIG_PM_RUNTIME | ||
| 1735 | if (hdev->dev.power.autosuspend_delay >= 0) | 1736 | if (hdev->dev.power.autosuspend_delay >= 0) |
| 1736 | pm_runtime_set_autosuspend_delay(&hdev->dev, 0); | 1737 | pm_runtime_set_autosuspend_delay(&hdev->dev, 0); |
| 1738 | #endif | ||
| 1737 | 1739 | ||
| 1738 | /* | 1740 | /* |
| 1739 | * Hubs have proper suspend/resume support, except for root hubs | 1741 | * Hubs have proper suspend/resume support, except for root hubs |
