summaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/ehci-pci.c
diff options
context:
space:
mode:
authorAlan Stern <stern@rowland.harvard.edu>2008-04-18 17:11:26 +0200
committerGreg Kroah-Hartman <gregkh@suse.de>2008-04-25 06:16:54 +0200
commitaff6d18f95bb81b2d07994372c8edcc2c2b41180 (patch)
treedcb93a3eb64c5c9a7bbe46c8fd6d09851d7b2007 /drivers/usb/host/ehci-pci.c
parentUSB: ehci: qh_completions cleanup and bugfix (diff)
downloadlinux-aff6d18f95bb81b2d07994372c8edcc2c2b41180.tar.xz
linux-aff6d18f95bb81b2d07994372c8edcc2c2b41180.zip
USB: fix compile problems in ehci-hcd
This patch (as1072) fixes some recently-introduced compile problems that show up in ehci-hcd when CONFIG_PM is turned off. PORT_WAKE_BITS needs to be defined always. ehci_port_power() is called during initialization by all the EHCI variants other than the PCI version, in which it is "defined but not used". So add a call to it. Signed-off-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/host/ehci-pci.c')
-rw-r--r--drivers/usb/host/ehci-pci.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/host/ehci-pci.c b/drivers/usb/host/ehci-pci.c
index 88dad4b53131..5bb7f6bb13f3 100644
--- a/drivers/usb/host/ehci-pci.c
+++ b/drivers/usb/host/ehci-pci.c
@@ -222,6 +222,7 @@ static int ehci_pci_setup(struct usb_hcd *hcd)
ehci_warn(ehci, "selective suspend/wakeup unavailable\n");
#endif
+ ehci_port_power(ehci, 1);
retval = ehci_pci_reinit(ehci, pdev);
done:
return retval;