]> git.sur5r.net Git - u-boot/commitdiff
arch/arm/cpu/armv7/omap-common/clocks-common.c: Fix build warnings
authorAnatolij Gustschin <agust@denx.de>
Tue, 27 Mar 2012 23:13:43 +0000 (23:13 +0000)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Thu, 29 Mar 2012 06:19:29 +0000 (08:19 +0200)
Fix:
clocks-common.c: In function 'setup_non_essential_dplls':
clocks-common.c:323:6: warning: variable 'sys_clk_khz' set but not used
[-Wunused-but-set-variable]
clocks-common.c: In function 'setup_non_essential_dplls':
clocks-common.c:323:6: warning: variable 'sys_clk_khz' set but not used
[-Wunused-but-set-variable]

Signed-off-by: Anatolij Gustschin <agust@denx.de>
Cc: Tom Rini <trini@ti.com>
arch/arm/cpu/armv7/omap-common/clocks-common.c

index 4cfe11991ab84afdcc48125c2c19d8cdc28ff09f..4e7456992f744c9d075f74c0cd7be4a06c556044 100644 (file)
@@ -320,11 +320,9 @@ static void setup_dplls(void)
 #ifdef CONFIG_SYS_CLOCKS_ENABLE_ALL
 static void setup_non_essential_dplls(void)
 {
-       u32 sys_clk_khz, abe_ref_clk;
+       u32 abe_ref_clk;
        const struct dpll_params *params;
 
-       sys_clk_khz = get_sys_clk_freq() / 1000;
-
        /* IVA */
        clrsetbits_le32(&prcm->cm_bypclk_dpll_iva,
                CM_BYPCLK_DPLL_IVA_CLKSEL_MASK, DPLL_IVA_CLKSEL_CORE_X2_DIV_2);