diff options
author | Rafael J. Wysocki <rjw@sisk.pl> | 2011-03-18 19:55:36 +0100 |
---|---|---|
committer | Rafael J. Wysocki <rjw@sisk.pl> | 2011-03-18 19:55:36 +0100 |
commit | e1620d591a75a10b15cf61dbf8243a0b7e6731a2 (patch) | |
tree | 01facc1611d08d80fc1f0a3d430e83779e9fbdc5 /drivers/usb/core/usb.h | |
parent | 99759619b27662d1290901228d77a293e6e83200 (diff) | |
download | kernel_samsung_smdk4412-e1620d591a75a10b15cf61dbf8243a0b7e6731a2.zip kernel_samsung_smdk4412-e1620d591a75a10b15cf61dbf8243a0b7e6731a2.tar.gz kernel_samsung_smdk4412-e1620d591a75a10b15cf61dbf8243a0b7e6731a2.tar.bz2 |
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.h')
-rw-r--r-- | drivers/usb/core/usb.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/usb/core/usb.h b/drivers/usb/core/usb.h index a9cf484..d450b74 100644 --- a/drivers/usb/core/usb.h +++ b/drivers/usb/core/usb.h @@ -77,6 +77,9 @@ static inline int usb_port_resume(struct usb_device *udev, pm_message_t msg) extern void usb_autosuspend_device(struct usb_device *udev); extern int usb_autoresume_device(struct usb_device *udev); extern int usb_remote_wakeup(struct usb_device *dev); +extern int usb_runtime_suspend(struct device *dev); +extern int usb_runtime_resume(struct device *dev); +extern int usb_runtime_idle(struct device *dev); #else |