summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Waters <justin.waters@timesys.com>2010-04-06 12:05:58 -0400
committerJustin Waters <justin.waters@timesys.com>2010-04-06 12:05:58 -0400
commit0d41608828ce4dc3b22bc9b16e7906c5ef3af227 (patch)
tree84602d61781415621e57ca338b571216b4bb773d
parent14ebb395edca82135ca64c4037122202298a8b07 (diff)
Enclose autosuspend_disabled in CONFIG_PM switch
-rw-r--r--drivers/usb/core/hub.c2
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) {