Commit 10798ae5 authored by Nishanth Menon's avatar Nishanth Menon

[OMAP][COMMON] Fix build warnings

Fix a bunch of build warnings
Signed-off-by: default avatarNishanth Menon <nm@ti.com>
parent 9dee5db5
......@@ -394,7 +394,7 @@ enum sci_err sci_get_version(psci_handle const phandle, uint32_t * const plib_ma
{
int i;
int tmp_cnt;
uint32_t pmod_type_id;
uint32_t pmod_type_id = 0;
enum sci_err ret_err = SCI_SUCCESS;
/* Note that this function can be called with a NULL handle since
......@@ -1149,7 +1149,7 @@ enum sci_err sci_dump_sdram_cntrs(int num_sci_cntrs, uint32_t * pbuf)
enum sci_err sci_dump_cntrs(psci_handle const phandle, psci_usecase_key usecase_key, int num_sci_cntrs, uint32_t * pbuf)
{
/* Dump the counters to pbuf for the provided usecase_key */
reg32_t * pdump_cntrs;
reg32_t * pdump_cntrs = NULL;
enum sci_err ret_err = SCI_SUCCESS;
......
......@@ -549,7 +549,7 @@ int statcoll_main(int argc, char **argv)
case 'p':
{
unsigned int loop = 0;
unsigned int index;
unsigned int index = 0;
if (long_opt == 1) {
index = long_options[option_index].name[1] - '0';
......@@ -1034,8 +1034,8 @@ void sci_errhandler(psci_handle phandle, const char * func, enum sci_err err)
void nosleep_32k_enable(void)
{
unsigned int reg;
unsigned int reg_clk;
unsigned int reg = 0;
unsigned int reg_clk = 0;
if (cpu_is_omap54xx()) {
if (cpu_revision_get() == REV_ES1_0)
......@@ -1053,8 +1053,8 @@ void nosleep_32k_enable(void)
void nosleep_32k_disable(void)
{
unsigned int reg;
unsigned int reg_clk;
unsigned int reg = 0;
unsigned int reg_clk = 0;
if (cpu_is_omap54xx()) {
if (cpu_revision_get() == REV_ES1_0)
......
......@@ -65,7 +65,7 @@ static volatile unsigned int *addr_32k = NULL;
*//*------------------------------------------------------------------------ */
volatile unsigned int *mem_map_32k(void)
{
unsigned int reg_32k;
unsigned int reg_32k = 0;
if (cpu_is_omap54xx() || cpu_is_dra7xx())
reg_32k = OMAP5430_CR;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment