Skip to contentSkip to conversation

arch/arm/cpu/armv7/omap-common/clocks-common.c: Fix build warnings

PATCH New Anatolij Gustschin 2 participants 2 messages Mar 28, 2012 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arch/arm/cpu/armv7/omap-common/clocks-common.c: Fix build warnings

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]

---
 arch/arm/cpu/armv7/omap-common/clocks-common.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
arch/arm/cpu/armv7/omap-common/clocks-common.c +1 -3
index 4cfe119..4e74569 100644
@@ -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);
Signature · 1 line
1.7.7.6
#1 lore raw

PATCH 1/1 arch/arm/cpu/armv7/omap-common/clocks-common.c: Fix build warnings

Quoted 10 lines · Anatolij Gustschin

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]

Queued for u-boot-ti/master (Albert hasn't pushed his latest updates yet), thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20120328/2152b459/attachment.pgp>