Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Alan Stern and committed by
Greg Kroah-Hartman
aff6d18f 4f667627

+3 -2
+2 -2
drivers/usb/host/ehci-hub.c
··· 28 28 29 29 /*-------------------------------------------------------------------------*/ 30 30 31 - #ifdef CONFIG_PM 32 - 33 31 #define PORT_WAKE_BITS (PORT_WKOC_E|PORT_WKDISC_E|PORT_WKCONN_E) 32 + 33 + #ifdef CONFIG_PM 34 34 35 35 static int ehci_hub_control( 36 36 struct usb_hcd *hcd,
+1
drivers/usb/host/ehci-pci.c
··· 222 222 ehci_warn(ehci, "selective suspend/wakeup unavailable\n"); 223 223 #endif 224 224 225 + ehci_port_power(ehci, 1); 225 226 retval = ehci_pci_reinit(ehci, pdev); 226 227 done: 227 228 return retval;