USB: use PM core routines to enable/disable autosuspend
authorAlan Stern <stern@rowland.harvard.edu>
Fri, 2 Apr 2010 17:22:09 +0000 (13:22 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 20 May 2010 20:21:37 +0000 (13:21 -0700)
commit9e18c821659d836bd63f88df3c19729327728496
tree4148e58d0e03aecfe0dbeedd175bc960006570a9
parent7aba8d014341341590ecb64050b7a026642a62eb
USB: use PM core routines to enable/disable autosuspend

This patch (as1366) replaces the private routines
usb_enable_autosuspend() and usb_disable_autosuspend() with calls to
the standard pm_runtime_allow() and pm_runtime_forbid() functions in
the runtime PM framework.  They do the same thing.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/core/driver.c
drivers/usb/core/sysfs.c
include/linux/usb.h