2.6.31.14 fails compile with no CONFIG_PM.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Sorry, is there a different list for older kernels.  This is not an
issue in more current versions.  I guess 'autosuspend_disabled' got
reworked.

diff --git a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c
index 9c6c15d..022647c 100644
--- a/drivers/usb/core/hub.c
+++ b/drivers/usb/core/hub.c
@@ -1173,8 +1173,10 @@ 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) {
                dev_warn(&intf->dev, "ignoring external hub\n");
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux