diff options
author | Stefano Babic <sbabic@denx.de> | 2012-10-24 10:06:28 +0200 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2012-10-26 16:11:32 +0200 |
commit | 01968b96a24414ff8f0735111907cbb750c7af43 (patch) | |
tree | 46ec73693c1b8611af14570a0cead43c72021733 /arch/arm/cpu/armv7 | |
parent | ab857f2613be39274d0870768720067ff9d859c0 (diff) | |
download | u-boot-imx-01968b96a24414ff8f0735111907cbb750c7af43.zip u-boot-imx-01968b96a24414ff8f0735111907cbb750c7af43.tar.gz u-boot-imx-01968b96a24414ff8f0735111907cbb750c7af43.tar.bz2 |
MX5: fix warning in clock.c
Patch fix warnings compiling with ELDK-4.2:
clock.c: In function 'get_standard_pll_sel_clk':
clock.c:341: warning: 'freq' may be used uninitialized in this function
Reported-by : Marek Vasut <marex@denx.de>
Signed-off-by: Stefano Babic <sbabic@denx.de>
Diffstat (limited to 'arch/arm/cpu/armv7')
-rw-r--r-- | arch/arm/cpu/armv7/mx5/clock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/cpu/armv7/mx5/clock.c b/arch/arm/cpu/armv7/mx5/clock.c index 2709860..1c9223f 100644 --- a/arch/arm/cpu/armv7/mx5/clock.c +++ b/arch/arm/cpu/armv7/mx5/clock.c @@ -338,7 +338,7 @@ static u32 get_ipg_per_clk(void) /* Get the output clock rate of a standard PLL MUX for peripherals. */ static u32 get_standard_pll_sel_clk(u32 clk_sel) { - u32 freq; + u32 freq = 0; switch (clk_sel & 0x3) { case 0: |