USB: consolidate remote wakeup routines
commit0534d46848990e8eed7cd0832d745d813e827261
authorAlan Stern <stern@rowland.harvard.edu>
Fri, 8 Jan 2010 17:56:30 +0000 (8 12:56 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 2 Mar 2010 22:54:08 +0000 (2 14:54 -0800)
treed861a679f0471a8e5c243720c507c7c43c363d7f
parent62e299e61a6ffe8131fa85a984c3058b68586f5d
USB: consolidate remote wakeup routines

This patch (as1324) makes a small change to the code used for remote
wakeup of root hubs.  hcd_resume_work() now calls the hub driver's
remote-wakeup routine instead of implementing its own version.

The patch is complicated by the need to rename remote_wakeup() to
usb_remote_wakeup(), make it non-static, and declare it in a header
file.  There's also the additional complication required to make
everything work when CONFIG_PM isn't set; the do-nothing inline
routine had to be moved into the header file.

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