mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-21 06:31:31 +00:00
mmc: stm32_sdmmc2: avoid warnings when building with W=1 option
This patch solves warnings detected by setting W=1 when building. Warnings type detected: - [-Wmissing-prototypes] - [-Wimplicit-fallthrough=] Signed-off-by: Christophe Kerello <christophe.kerello@st.com> Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
This commit is contained in:
parent
585289b4fc
commit
0e9fb25f71
1 changed files with 2 additions and 1 deletions
|
@ -669,6 +669,7 @@ static int stm32_sdmmc2_probe(struct udevice *dev)
|
||||||
switch (dev_read_u32_default(dev, "bus-width", 1)) {
|
switch (dev_read_u32_default(dev, "bus-width", 1)) {
|
||||||
case 8:
|
case 8:
|
||||||
cfg->host_caps |= MMC_MODE_8BIT;
|
cfg->host_caps |= MMC_MODE_8BIT;
|
||||||
|
/* fall through */
|
||||||
case 4:
|
case 4:
|
||||||
cfg->host_caps |= MMC_MODE_4BIT;
|
cfg->host_caps |= MMC_MODE_4BIT;
|
||||||
break;
|
break;
|
||||||
|
@ -692,7 +693,7 @@ clk_free:
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
int stm32_sdmmc_bind(struct udevice *dev)
|
static int stm32_sdmmc_bind(struct udevice *dev)
|
||||||
{
|
{
|
||||||
struct stm32_sdmmc2_plat *plat = dev_get_platdata(dev);
|
struct stm32_sdmmc2_plat *plat = dev_get_platdata(dev);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue