Commit 5b91c6b5 authored by Ryan QIAN's avatar Ryan QIAN

ENGR00218754: mx6: fix build warning for sd pad configuration

- fix build warning about uninitialization of sd_pads_50mhz, sd_pads_100mhz,
and sd_pads_200mhz.

affected soc:
- mx6q arm2/sabreauto/sabrelite
- mx6sl arm2
Signed-off-by: default avatarRyan QIAN <b32804@freescale.com>
parent bca640d1
......@@ -181,9 +181,9 @@ static int plt_sd_pad_change(unsigned int index, int clock)
/* LOW speed is the default state of SD pads */
static enum sd_pad_mode pad_mode = SD_PAD_MODE_LOW_SPEED;
iomux_v3_cfg_t *sd_pads_200mhz;
iomux_v3_cfg_t *sd_pads_100mhz;
iomux_v3_cfg_t *sd_pads_50mhz;
iomux_v3_cfg_t *sd_pads_200mhz = NULL;
iomux_v3_cfg_t *sd_pads_100mhz = NULL;
iomux_v3_cfg_t *sd_pads_50mhz = NULL;
u32 sd_pads_200mhz_cnt;
u32 sd_pads_100mhz_cnt;
......
......@@ -223,9 +223,9 @@ static int plt_sd_pad_change(unsigned int index, int clock)
/* LOW speed is the default state of SD pads */
static enum sd_pad_mode pad_mode = SD_PAD_MODE_LOW_SPEED;
iomux_v3_cfg_t *sd_pads_200mhz;
iomux_v3_cfg_t *sd_pads_100mhz;
iomux_v3_cfg_t *sd_pads_50mhz;
iomux_v3_cfg_t *sd_pads_200mhz = NULL;
iomux_v3_cfg_t *sd_pads_100mhz = NULL;
iomux_v3_cfg_t *sd_pads_50mhz = NULL;
u32 sd_pads_200mhz_cnt;
u32 sd_pads_100mhz_cnt;
......
......@@ -364,9 +364,9 @@ static int plt_sd_pad_change(unsigned int index, int clock)
/* LOW speed is the default state of SD pads */
static enum sd_pad_mode pad_mode = SD_PAD_MODE_LOW_SPEED;
iomux_v3_cfg_t *sd_pads_200mhz;
iomux_v3_cfg_t *sd_pads_100mhz;
iomux_v3_cfg_t *sd_pads_50mhz;
iomux_v3_cfg_t *sd_pads_200mhz = NULL;
iomux_v3_cfg_t *sd_pads_100mhz = NULL;
iomux_v3_cfg_t *sd_pads_50mhz = NULL;
u32 sd_pads_200mhz_cnt;
u32 sd_pads_100mhz_cnt;
......
......@@ -146,9 +146,9 @@ static int plt_sd_pad_change(unsigned int index, int clock)
/* LOW speed is the default state of SD pads */
static enum sd_pad_mode pad_mode = SD_PAD_MODE_LOW_SPEED;
iomux_v3_cfg_t *sd_pads_200mhz;
iomux_v3_cfg_t *sd_pads_100mhz;
iomux_v3_cfg_t *sd_pads_50mhz;
iomux_v3_cfg_t *sd_pads_200mhz = NULL;
iomux_v3_cfg_t *sd_pads_100mhz = NULL;
iomux_v3_cfg_t *sd_pads_50mhz = NULL;
u32 sd_pads_200mhz_cnt;
u32 sd_pads_100mhz_cnt;
......
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