diff options
Diffstat (limited to 'drivers/usb/core/hub.c')
| -rw-r--r-- | drivers/usb/core/hub.c | 6 | 
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)  	 * - If user has indicated to prevent autosuspend by passing  	 *   usbcore.autosuspend = -1 then keep autosuspend disabled.  	 */ -#ifdef CONFIG_PM_RUNTIME +#ifdef CONFIG_PM  	if (hdev->dev.power.autosuspend_delay >= 0)  		pm_runtime_set_autosuspend_delay(&hdev->dev, 0);  #endif @@ -3449,7 +3449,7 @@ int usb_port_resume(struct usb_device *udev, pm_message_t msg)  	return status;  } -#ifdef	CONFIG_PM_RUNTIME +#ifdef	CONFIG_PM  int usb_remote_wakeup(struct usb_device *udev)  { @@ -4856,7 +4856,7 @@ static void hub_port_connect_change(struct usb_hub *hub, int port1,  			udev->state != USB_STATE_NOTATTACHED) {  		if (portstatus & USB_PORT_STAT_ENABLE) {  			status = 0;		/* Nothing to do */ -#ifdef CONFIG_PM_RUNTIME +#ifdef CONFIG_PM  		} else if (udev->state == USB_STATE_SUSPENDED &&  				udev->persist_enabled) {  			/* For a suspended device, treat this as a  |