]> code.ossystems Code Review - bsp/u-boot.git/commitdiff
usb: ehci-ci: Add a prototype for board_ehci_power()
authorDiego Dorta <diego.dorta@nxp.com>
Wed, 27 Sep 2017 16:12:39 +0000 (13:12 -0300)
committerOtavio Salvador <otavio@ossystems.com.br>
Mon, 2 Oct 2017 17:31:32 +0000 (14:31 -0300)
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 <diego.dorta@nxp.com>
(cherry picked from commit c94dc551940208a93c6cda3d59325c103b50b41f)

include/usb/ehci-ci.h

index cd3eb47da4a2de108f41411b98a8328d5fa2015a..8c9f3cd9372ea1a0c984b670038a8be2f86e7875 100644 (file)
@@ -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 */