OHCI: make autostop conditional on CONFIG_PM
authorAlan Stern <stern@rowland.harvard.edu>
Mon, 20 Nov 2006 16:06:59 +0000 (11:06 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 1 Dec 2006 22:25:52 +0000 (14:25 -0800)
commit1f9fc882d92f3ff390455836f98d7ddc36d4e4c3
tree55e23959337683a5dc0d5b3b00c8c5f83b61ed7e
parent40f122f343797d02390c5a157372cac0c5b50bb7
OHCI: make autostop conditional on CONFIG_PM

Unlike UHCI, OHCI does not exert any DMA load on the system when no
devices are connected.  Consequently there is no advantage to doing
an autostop other than the power savings, so we shouldn't compile the
necessary code unless CONFIG_PM is enabled.

This patch (as820) makes the root-hub suspend and resume routines
conditional on CONFIG_PM.  It also prevents autostop from activating
if the device_may_wakeup flag isn't set; some people use this flag to
alert the driver about Resume-Detect bugs in the hardware.

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