diff options
author | Alan Stern <stern@rowland.harvard.edu> | 2008-04-18 11:11:26 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-04-25 00:16:54 -0400 |
commit | aff6d18f95bb81b2d07994372c8edcc2c2b41180 (patch) | |
tree | dcb93a3eb64c5c9a7bbe46c8fd6d09851d7b2007 /drivers/usb/host/ehci-hub.c | |
parent | 4f6676274fb6303a8e8100d086ea8c2c00c0d8e3 (diff) |
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-hub.c')
-rw-r--r-- | drivers/usb/host/ehci-hub.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/host/ehci-hub.c b/drivers/usb/host/ehci-hub.c index 536b433d24f7..efffef64f59d 100644 --- a/drivers/usb/host/ehci-hub.c +++ b/drivers/usb/host/ehci-hub.c | |||
@@ -28,10 +28,10 @@ | |||
28 | 28 | ||
29 | /*-------------------------------------------------------------------------*/ | 29 | /*-------------------------------------------------------------------------*/ |
30 | 30 | ||
31 | #ifdef CONFIG_PM | ||
32 | |||
33 | #define PORT_WAKE_BITS (PORT_WKOC_E|PORT_WKDISC_E|PORT_WKCONN_E) | 31 | #define PORT_WAKE_BITS (PORT_WKOC_E|PORT_WKDISC_E|PORT_WKCONN_E) |
34 | 32 | ||
33 | #ifdef CONFIG_PM | ||
34 | |||
35 | static int ehci_hub_control( | 35 | static int ehci_hub_control( |
36 | struct usb_hcd *hcd, | 36 | struct usb_hcd *hcd, |
37 | u16 typeReq, | 37 | u16 typeReq, |