USB: Move runtime PM callbacks to usb_device_pm_ops
authorRafael J. Wysocki <rjw@sisk.pl>
Fri, 18 Mar 2011 18:55:36 +0000 (19:55 +0100)
committerRafael J. Wysocki <rjw@sisk.pl>
Fri, 18 Mar 2011 18:55:36 +0000 (19:55 +0100)
commite1620d591a75a10b15cf61dbf8243a0b7e6731a2
tree01facc1611d08d80fc1f0a3d430e83779e9fbdc5
parent99759619b27662d1290901228d77a293e6e83200
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>
drivers/usb/core/driver.c
drivers/usb/core/usb.c
drivers/usb/core/usb.h