From 0d41608828ce4dc3b22bc9b16e7906c5ef3af227 Mon Sep 17 00:00:00 2001 From: Justin Waters Date: Tue, 6 Apr 2010 12:05:58 -0400 Subject: Enclose autosuspend_disabled in CONFIG_PM switch --- drivers/usb/core/hub.c | 2 ++ 1 file changed, 2 insertions(+) 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) { -- cgit v1.2.3