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

2017-10-02 Thread Stefano Babic
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 
> ---
>  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

-- 
=
DENX Software Engineering GmbH,  Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sba...@denx.de
=
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


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

2017-09-27 Thread Diego Dorta
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 
---
 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 */
-- 
2.7.4

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot