From: Diego Dorta Date: Wed, 27 Sep 2017 16:12:39 +0000 (-0300) Subject: usb: ehci-ci: Add a prototype for board_ehci_power() X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=9b1dd35df21dca06642205bf96213f525e0c6a25;p=bsp%2Fu-boot.git usb: ehci-ci: Add a prototype for board_ehci_power() When compiling with W=1 the following warning is observed: board/freescale/mx6sabresd/mx6sabresd.c:601:5: warning: no previous prototype for ‘board_ehci_power’ [-Wmissing-prototypes] int board_ehci_power(int port, int on) Remove this warning by adding the function prototype into usb/ehci-ci.h file. Signed-off-by: Diego Dorta (cherry picked from commit c94dc551940208a93c6cda3d59325c103b50b41f) --- diff --git a/include/usb/ehci-ci.h b/include/usb/ehci-ci.h index cd3eb47da4..8c9f3cd937 100644 --- a/include/usb/ehci-ci.h +++ b/include/usb/ehci-ci.h @@ -280,6 +280,7 @@ struct usb_ehci { int usb_phy_mode(int port); /* Board-specific initialization */ int board_ehci_hcd_init(int port); +int board_ehci_power(int port, int on); int board_usb_phy_mode(int port); #endif /* _EHCI_CI_H */