aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/core/usb.c
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2014-11-29 17:47:05 -0500
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2014-12-03 18:51:54 -0500
commitceb6c9c862c86423f41c1e20ecf8d454f837f519 (patch)
tree23b6b5cb563720c9562977f4835d004c1d12f7bd /drivers/usb/core/usb.c
parent6ed23b806e73bdd5b17722df507b0f4570c606b6 (diff)
USB / PM: Drop CONFIG_PM_RUNTIME from the USB core
After commit b2b49ccbdd54 (PM: Kconfig: Set PM_RUNTIME if PM_SLEEP is selected) PM_RUNTIME is always set if PM is set, so quite a few depend on CONFIG_PM (or even dropped in some cases). Replace CONFIG_PM_RUNTIME with CONFIG_PM in the USB core code and documentation. Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Acked-by: Alan Stern <stern@rowland.harvard.edu> Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/core/usb.c')
-rw-r--r--drivers/usb/core/usb.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/usb/core/usb.c b/drivers/usb/core/usb.c
index 2dd2362198d2..2a92b97f0144 100644
--- a/drivers/usb/core/usb.c
+++ b/drivers/usb/core/usb.c
@@ -49,7 +49,7 @@ const char *usbcore_name = "usbcore";
49 49
50static bool nousb; /* Disable USB when built into kernel image */ 50static bool nousb; /* Disable USB when built into kernel image */
51 51
52#ifdef CONFIG_PM_RUNTIME 52#ifdef CONFIG_PM
53static int usb_autosuspend_delay = 2; /* Default delay value, 53static int usb_autosuspend_delay = 2; /* Default delay value,
54 * in seconds */ 54 * in seconds */
55module_param_named(autosuspend, usb_autosuspend_delay, int, 0644); 55module_param_named(autosuspend, usb_autosuspend_delay, int, 0644);
@@ -348,11 +348,9 @@ static const struct dev_pm_ops usb_device_pm_ops = {
348 .thaw = usb_dev_thaw, 348 .thaw = usb_dev_thaw,
349 .poweroff = usb_dev_poweroff, 349 .poweroff = usb_dev_poweroff,
350 .restore = usb_dev_restore, 350 .restore = usb_dev_restore,
351#ifdef CONFIG_PM_RUNTIME
352 .runtime_suspend = usb_runtime_suspend, 351 .runtime_suspend = usb_runtime_suspend,
353 .runtime_resume = usb_runtime_resume, 352 .runtime_resume = usb_runtime_resume,
354 .runtime_idle = usb_runtime_idle, 353 .runtime_idle = usb_runtime_idle,
355#endif
356}; 354};
357 355
358#endif /* CONFIG_PM */ 356#endif /* CONFIG_PM */