]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
ARM: EXYNOS: fixed compiler warning message
authorJaehoon Chung <jh80.chung@samsung.com>
Mon, 9 Jul 2012 21:20:34 +0000 (21:20 +0000)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Sat, 1 Sep 2012 12:58:23 +0000 (14:58 +0200)
Removed [-Wuninitialized] warning message.
The fout_sel is assigned to "-1" by default.
And start, gpio_func is initialized to 0.

Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Acked-by: Rajeshwari Shinde <rajeshwari.s@samsung.com>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
arch/arm/cpu/armv7/exynos/clock.c
arch/arm/cpu/armv7/exynos/pinmux.c

index 5b7e0ff025718fd05d3068b7eea182b25499bb8e..de3db8e9bfdc7e06e3859fb72acd8a1f78bca2a8 100644 (file)
@@ -173,6 +173,9 @@ static unsigned long exynos5_get_pll_clk(int pllreg)
                        fout_sel = (pll_div2_sel >> BPLL_FOUT_SEL_SHIFT)
                                        & BPLL_FOUT_SEL_MASK;
                        break;
+               default:
+                       fout_sel = -1;
+                       break;
                }
 
                if (fout_sel == 0)
index e90ad6a3493ea10b3bde63e5b01ba9fd5cfb4fe4..7776add9db3de7fb3212c43e959d6603534c1c2d 100644 (file)
@@ -66,7 +66,7 @@ static int exynos5_mmc_config(int peripheral, int flags)
        struct exynos5_gpio_part1 *gpio1 =
                (struct exynos5_gpio_part1 *) samsung_get_base_gpio_part1();
        struct s5p_gpio_bank *bank, *bank_ext;
-       int i, start, gpio_func;
+       int i, start = 0, gpio_func = 0;
 
        switch (peripheral) {
        case PERIPH_ID_SDMMC0: