diff mbox series

[U-Boot,3/4] usb: ehci-ci: Add a prototype for board_ehci_power()

Message ID 1506528760-4614-3-git-send-email-diego.dorta@nxp.com
State Accepted
Commit 2dcff642ef75b39286df7adf6debdd13819ec2c9
Delegated to: Stefano Babic
Headers show
Series [U-Boot,1/4] mx6: soc: Include <asm/bootm.h> header file | expand

Commit Message

Diego Dorta Sept. 27, 2017, 4:12 p.m. UTC
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>
---
 include/usb/ehci-ci.h | 1 +
 1 file changed, 1 insertion(+)

Comments

Stefano Babic Oct. 2, 2017, 2:14 p.m. UTC | #1
On 27/09/2017 18:12, Diego Dorta wrote:
> 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>
> ---
>  include/usb/ehci-ci.h | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/include/usb/ehci-ci.h b/include/usb/ehci-ci.h
> index cd3eb47..8c9f3cd 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 */
> 
Applied to u-boot-imx, -master, thanks !

Best regards,
Stefano Babic
diff mbox series

Patch

diff --git a/include/usb/ehci-ci.h b/include/usb/ehci-ci.h
index cd3eb47..8c9f3cd 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 */