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

drivers:usb:fsl: Fix compilation error for fsl ehci drv

Fix compilation error in fsl ehci drv because ehci_reset()
and ehci_adjust_port_wakeup_flags() were not exported, and
are used when PM is enabled

Signed-off-by: Ramneek Mehresh <ramneek.mehresh@freescale.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Ramneek Mehresh and committed by
Greg Kroah-Hartman
74db22cb c5d496ad

+7 -2
+2 -1
drivers/usb/host/ehci-hcd.c
··· 239 239 * Reset a non-running (STS_HALT == 1) controller. 240 240 * Must be called with interrupts enabled and the lock not held. 241 241 */ 242 - static int ehci_reset (struct ehci_hcd *ehci) 242 + int ehci_reset(struct ehci_hcd *ehci) 243 243 { 244 244 int retval; 245 245 u32 command = ehci_readl(ehci, &ehci->regs->command); ··· 275 275 ehci->resuming_ports = 0; 276 276 return retval; 277 277 } 278 + EXPORT_SYMBOL_GPL(ehci_reset); 278 279 279 280 /* 280 281 * Idle the controller (turn off the schedules).
+2 -1
drivers/usb/host/ehci-hub.c
··· 155 155 return 0; 156 156 } 157 157 158 - static void ehci_adjust_port_wakeup_flags(struct ehci_hcd *ehci, 158 + void ehci_adjust_port_wakeup_flags(struct ehci_hcd *ehci, 159 159 bool suspending, bool do_wakeup) 160 160 { 161 161 int port; ··· 220 220 221 221 spin_unlock_irq(&ehci->lock); 222 222 } 223 + EXPORT_SYMBOL_GPL(ehci_adjust_port_wakeup_flags); 223 224 224 225 static int ehci_bus_suspend (struct usb_hcd *hcd) 225 226 {
+3
drivers/usb/host/ehci.h
··· 868 868 extern int ehci_setup(struct usb_hcd *hcd); 869 869 extern int ehci_handshake(struct ehci_hcd *ehci, void __iomem *ptr, 870 870 u32 mask, u32 done, int usec); 871 + extern int ehci_reset(struct ehci_hcd *ehci); 871 872 872 873 #ifdef CONFIG_PM 873 874 extern int ehci_suspend(struct usb_hcd *hcd, bool do_wakeup); 874 875 extern int ehci_resume(struct usb_hcd *hcd, bool force_reset); 876 + extern void ehci_adjust_port_wakeup_flags(struct ehci_hcd *ehci, 877 + bool suspending, bool do_wakeup); 875 878 #endif /* CONFIG_PM */ 876 879 877 880 extern int ehci_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue,