USB: autosuspend code consolidation
authorAlan Stern <stern@rowland.harvard.edu>
Mon, 30 Oct 2006 22:06:45 +0000 (17:06 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 1 Dec 2006 22:23:29 +0000 (14:23 -0800)
commitaf4f76066d0fcb215ae389b8839d7ae37ce0e28b
tree3d3ea0546de3dec1a340752d35831c1cbbd178fa
parent0c1ac4f25f894f9df0ffe9b912c165fb6a185a3c
USB: autosuspend code consolidation

This patch (as813) gathers together common code for USB interface
autosuspend/autoresume.

It also adds some simple checking at the time an autosuspend request
is made, to see whether the request will fail.  This way we don't
add a workqueue entry when it would end up doing nothing.

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