aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/core/hub.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/core/hub.c')
-rw-r--r--drivers/usb/core/hub.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c
index b649fef2e35d..c9596525ba8c 100644
--- a/drivers/usb/core/hub.c
+++ b/drivers/usb/core/hub.c
@@ -1737,7 +1737,7 @@ static int hub_probe(struct usb_interface *intf, const struct usb_device_id *id)
1737 * - If user has indicated to prevent autosuspend by passing 1737 * - If user has indicated to prevent autosuspend by passing
1738 * usbcore.autosuspend = -1 then keep autosuspend disabled. 1738 * usbcore.autosuspend = -1 then keep autosuspend disabled.
1739 */ 1739 */
1740#ifdef CONFIG_PM_RUNTIME 1740#ifdef CONFIG_PM
1741 if (hdev->dev.power.autosuspend_delay >= 0) 1741 if (hdev->dev.power.autosuspend_delay >= 0)
1742 pm_runtime_set_autosuspend_delay(&hdev->dev, 0); 1742 pm_runtime_set_autosuspend_delay(&hdev->dev, 0);
1743#endif 1743#endif
@@ -3449,7 +3449,7 @@ int usb_port_resume(struct usb_device *udev, pm_message_t msg)
3449 return status; 3449 return status;
3450} 3450}
3451 3451
3452#ifdef CONFIG_PM_RUNTIME 3452#ifdef CONFIG_PM
3453 3453
3454int usb_remote_wakeup(struct usb_device *udev) 3454int usb_remote_wakeup(struct usb_device *udev)
3455{ 3455{
@@ -4856,7 +4856,7 @@ static void hub_port_connect_change(struct usb_hub *hub, int port1,
4856 udev->state != USB_STATE_NOTATTACHED) { 4856 udev->state != USB_STATE_NOTATTACHED) {
4857 if (portstatus & USB_PORT_STAT_ENABLE) { 4857 if (portstatus & USB_PORT_STAT_ENABLE) {
4858 status = 0; /* Nothing to do */ 4858 status = 0; /* Nothing to do */
4859#ifdef CONFIG_PM_RUNTIME 4859#ifdef CONFIG_PM
4860 } else if (udev->state == USB_STATE_SUSPENDED && 4860 } else if (udev->state == USB_STATE_SUSPENDED &&
4861 udev->persist_enabled) { 4861 udev->persist_enabled) {
4862 /* For a suspended device, treat this as a 4862 /* For a suspended device, treat this as a