diff options
author | Rafael J. Wysocki <rjw@sisk.pl> | 2011-03-18 14:55:36 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rjw@sisk.pl> | 2011-03-18 14:55:36 -0400 |
commit | e1620d591a75a10b15cf61dbf8243a0b7e6731a2 (patch) | |
tree | 01facc1611d08d80fc1f0a3d430e83779e9fbdc5 /drivers/usb/core/usb.c | |
parent | 99759619b27662d1290901228d77a293e6e83200 (diff) |
USB: Move runtime PM callbacks to usb_device_pm_ops
USB defines usb_device_type pointing to usb_device_pm_ops that
provides system-wide PM callbacks only and usb_bus_type pointing to
usb_bus_pm_ops that provides runtime PM callbacks only. However,
the USB runtime PM callbacks may be defined in usb_device_pm_ops
which makes it possible to drop usb_bus_pm_ops and will allow us
to consolidate the handling of subsystems by the PM core code.
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Acked-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/core/usb.c')
-rw-r--r-- | drivers/usb/core/usb.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/usb/core/usb.c b/drivers/usb/core/usb.c index 079cb57bab4f..d9d4b169404f 100644 --- a/drivers/usb/core/usb.c +++ b/drivers/usb/core/usb.c | |||
@@ -315,6 +315,11 @@ static const struct dev_pm_ops usb_device_pm_ops = { | |||
315 | .thaw = usb_dev_thaw, | 315 | .thaw = usb_dev_thaw, |
316 | .poweroff = usb_dev_poweroff, | 316 | .poweroff = usb_dev_poweroff, |
317 | .restore = usb_dev_restore, | 317 | .restore = usb_dev_restore, |
318 | #ifdef CONFIG_USB_SUSPEND | ||
319 | .runtime_suspend = usb_runtime_suspend, | ||
320 | .runtime_resume = usb_runtime_resume, | ||
321 | .runtime_idle = usb_runtime_idle, | ||
322 | #endif | ||
318 | }; | 323 | }; |
319 | 324 | ||
320 | #endif /* CONFIG_PM */ | 325 | #endif /* CONFIG_PM */ |