mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-18 13:11:31 +00:00
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>
This commit is contained in:
parent
ab857f2613
commit
01968b96a2
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue