diff options
author | Kim Phillips <kim.phillips@freescale.com> | 2006-11-28 23:28:33 -0600 |
---|---|---|
committer | Kim Phillips <kim.phillips@freescale.com> | 2006-11-28 23:34:30 -0600 |
commit | 1aa934c81b77f2080d3ca4b226eab67b17a33961 (patch) | |
tree | f2c1d97d8a510d67e84f21bb656f9e4da5392b96 /drivers | |
parent | e857a5bdb3954b896c0920cb9d8d2b1b9c107ce5 (diff) | |
download | u-boot-imx-1aa934c81b77f2080d3ca4b226eab67b17a33961.zip u-boot-imx-1aa934c81b77f2080d3ca4b226eab67b17a33961.tar.gz u-boot-imx-1aa934c81b77f2080d3ca4b226eab67b17a33961.tar.bz2 |
Eliminate gcc 4 'used uninitialized' warnings in drivers/qe/uccf.c
give initial values for reg_num, shift, p_cmxucr in ucc_set_clk_src
since they are passed by reference to ucc_get_cmxucr_reg and assigned.
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/qe/uccf.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/qe/uccf.c b/drivers/qe/uccf.c index 25f7482..013aa54 100644 --- a/drivers/qe/uccf.c +++ b/drivers/qe/uccf.c @@ -100,9 +100,9 @@ static void ucc_get_cmxucr_reg(int ucc_num, volatile u32 **p_cmxucr, static int ucc_set_clk_src(int ucc_num, qe_clock_e clock, comm_dir_e mode) { - volatile u32 *p_cmxucr; - u8 reg_num; - u8 shift; + volatile u32 *p_cmxucr = NULL; + u8 reg_num = 0; + u8 shift = 0; u32 clockBits; u32 clockMask; int source = -1; |