arm: exynos: clock: fix the compile warning about unused variable 28/155328/2
authorJaehoon Chung <jh80.chung@samsung.com>
Tue, 10 Oct 2017 02:50:01 +0000 (11:50 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Fri, 13 Oct 2017 04:09:32 +0000 (04:09 +0000)
Some variables didn't used anywhere.
Fix the compile warning about unused variable for artik5/10.

Change-Id: I7a61e54b0a70b34f1ba12c0480773810d05bfa24
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
arch/arm/cpu/armv7/exynos/clock.c

index 8c52e528493b70a258e696f5b72e4f61d3efc8aa..30b34bbf639a4df10c660c4a6171e98e2dcfb590 100644 (file)
@@ -228,7 +228,7 @@ static unsigned long exynos5260_get_pll_clk(int pllreg)
                (struct exynos5260_clock_kfc *)samsung_get_base_clock_kfc();
        struct exynos5260_clock_mif *clk_mif =
                (struct exynos5260_clock_mif *)samsung_get_base_clock_mif();
-       unsigned long r, m, p, s, k = 0, mask, fout;
+       unsigned long r, m, p, s, mask, fout;
        unsigned int pll_ratio = 0;
        unsigned int freq;
 
@@ -292,7 +292,7 @@ static unsigned long exynos5430_get_pll_clk(int pllreg)
        struct exynos5430_clock_cpif *clk_cpif =
                                (struct exynos5430_clock_cpif *)
                                            exynos5430_get_base_clock_cpif();
-       unsigned long r, m, p, s, k = 0, mask, fout;
+       unsigned long r, m, p, s, mask, fout;
        unsigned int pll_ratio = 0;
        unsigned int bus_pll_sub_sel = 0;
        unsigned int freq;
@@ -497,7 +497,6 @@ static unsigned long exynos5_get_pwm_clk(void)
        struct exynos5_clock *clk =
                (struct exynos5_clock *)samsung_get_base_clock();
        unsigned long pclk, div_aclk_pre, div_aclk;
-       unsigned int ratio;
 
        /*
         * CLK_DIV_PERIC3
@@ -565,7 +564,9 @@ static unsigned long exynos4_get_uart_clk(int dev_index)
        unsigned long uclk, sclk;
        unsigned int sel;
        unsigned int ratio;
+#ifdef CONFIG_CPU_EXYNOS3250
        unsigned int mpll_ratio_pre;
+#endif
 
        /*
         * CLK_SRC_PERIL0
@@ -1028,7 +1029,9 @@ static unsigned int exynos4_get_mmc_clk(int dev_index)
        unsigned int sel;
        unsigned int pre_ratio, ratio;
        unsigned long sclk;
+#ifdef CONFIG_CPU_EXYNOS3250
        unsigned int mpll_ratio_pre;
+#endif
 
        sel = readl(&clk->src_fsys);
        sel = (sel >> (dev_index << 2)) & 0xf;
@@ -1083,7 +1086,10 @@ static unsigned long exynos5_get_mmc_clk(int dev_index)
                (struct exynos5_clock *)samsung_get_base_clock();
        unsigned int addr;
        unsigned int sel;
-       unsigned int pre_ratio, ratio;
+       unsigned int ratio;
+#ifndef CONFIG_CPU_EXYNOS5420
+       unsigned int pre_ratio;
+#endif
        unsigned long sclk;
 
        sel = readl(&clk->src_fsys);