[U-Boot] [PATCH] EXYNOS: Fix USB compiler warning

Jaehoon Chung jh80.chung at samsung.com
Tue Jul 10 07:48:04 CEST 2012


Hi Rajeshwari,

How do you think about fixing other warning messages?
If you are inconvenience, i will fix it.

pinmux.c: In function 'exynos_pinmux_config':
pinmux.c:100:20: warning: 'gpio_func' may be used uninitialized in this function [-Wuninitialized]
pinmux.c:69:16: note: 'gpio_func' was declared here
pinmux.c:99:31: warning: 'start' may be used uninitialized in this function [-Wuninitialized]
pinmux.c:69:9: note: 'start' was declared here

Best Regards,
Jaehoon Chung

On 07/10/2012 02:34 PM, Rajeshwari Shinde wrote:

> Fixed the compiler warning message.
> 
> Signed-off-by: Rajeshwari Shinde <rajeshwari.s at samsung.com>
> ---
>  arch/arm/cpu/armv7/exynos/system.c |    1 -
>  1 files changed, 0 insertions(+), 1 deletions(-)
> 
> diff --git a/arch/arm/cpu/armv7/exynos/system.c b/arch/arm/cpu/armv7/exynos/system.c
> index cc6ee03..4426611 100644
> --- a/arch/arm/cpu/armv7/exynos/system.c
> +++ b/arch/arm/cpu/armv7/exynos/system.c
> @@ -29,7 +29,6 @@ static void exynos5_set_usbhost_mode(unsigned int mode)
>  {
>  	struct exynos5_sysreg *sysreg =
>  		(struct exynos5_sysreg *)samsung_get_base_sysreg();
> -	unsigned int phy_cfg;
>  
>  	/* Setting USB20PHY_CONFIG register to USB 2.0 HOST link */
>  	if (mode == USB20_PHY_CFG_HOST_LINK_EN) {




More information about the U-Boot mailing list