usb: host: unhide suspend/resume declarations
authorArnd Bergmann <arnd@arndb.de>
Wed, 2 Mar 2016 15:24:03 +0000 (16:24 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 4 Mar 2016 04:37:41 +0000 (20:37 -0800)
There is no need to hide function declarations, and making
these visible to the SoC specific host drivers lets us
use __maybe_unused and IS_ENABLED() checks to control
their use, rather than having to use #ifdef to hide all
callers.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/ehci.h
drivers/usb/host/ohci.h

index 2ddf35203c05c31290a821cf3f7fd6274f0f63ce..3f3b74aeca9740c67f45831762beea1d3c2d9097 100644 (file)
@@ -888,12 +888,10 @@ extern int        ehci_handshake(struct ehci_hcd *ehci, void __iomem *ptr,
                                u32 mask, u32 done, int usec);
 extern int     ehci_reset(struct ehci_hcd *ehci);
 
-#ifdef CONFIG_PM
 extern int     ehci_suspend(struct usb_hcd *hcd, bool do_wakeup);
 extern int     ehci_resume(struct usb_hcd *hcd, bool force_reset);
 extern void    ehci_adjust_port_wakeup_flags(struct ehci_hcd *ehci,
                        bool suspending, bool do_wakeup);
-#endif /* CONFIG_PM */
 
 extern int     ehci_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue,
                                 u16 wIndex, char *buf, u16 wLength);
index bc462288cfb079c4d2af75ef8ae7b9c6b0ebda98..37f1725e7a469c45fa035a46ed9827a5b92bc6c7 100644 (file)
@@ -735,10 +735,8 @@ extern void        ohci_init_driver(struct hc_driver *drv,
                                const struct ohci_driver_overrides *over);
 extern int     ohci_restart(struct ohci_hcd *ohci);
 extern int     ohci_setup(struct usb_hcd *hcd);
-#ifdef CONFIG_PM
 extern int     ohci_suspend(struct usb_hcd *hcd, bool do_wakeup);
 extern int     ohci_resume(struct usb_hcd *hcd, bool hibernated);
-#endif
 extern int     ohci_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue,
                                 u16 wIndex, char *buf, u16 wLength);
 extern int     ohci_hub_status_data(struct usb_hcd *hcd, char *buf);