]> git.baikalelectronics.ru Git - kernel.git/commit
usbcore: remove unused argument in autosuspend
authorAlan Stern <stern@rowland.harvard.edu>
Mon, 20 Nov 2006 16:38:46 +0000 (11:38 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 1 Dec 2006 22:25:53 +0000 (14:25 -0800)
commitcea0d6f2bdc78398535b10071e7122bf2c7f7856
treeffdcc2e33bce1343ce7e57e04e1beca190cf4201
parent93774aa0bc65f35fb499be8c92d056d7fe171c5f
usbcore: remove unused argument in autosuspend

Thanks to several earlier patches, usb_autosuspend_device() and
usb_autoresume_device() are never called with a second argument other
than 1.  This patch (as819) removes the now-redundant argument.

It also consolidates some common code between those two routines,
putting it into a new subroutine called usb_autopm_do_device().  And
it includes a sizable kerneldoc update for the affected functions.

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