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 64ad4fe3f1f0..ce1317696a40 100644 --- a/drivers/usb/core/hub.c +++ b/drivers/usb/core/hub.c @@ -1173,7 +1173,9 @@ static int hub_probe(struct usb_interface *intf, const struct usb_device_id *id) /* Defaultly disable autosuspend for hub and reley on sys * to enable it. */ +#ifdef CONFIG_PM hdev->autosuspend_disabled = 1; +#endif #ifdef CONFIG_USB_OTG_BLACKLIST_HUB if (hdev->parent) { |