summaryrefslogtreecommitdiff
path: root/drivers/mmc/stm32_sdmmc2.c
diff options
context:
space:
mode:
authorPatrick Delaunay <patrick.delaunay@st.com>2019-06-21 16:26:42 +0300
committerPatrick Delaunay <patrick.delaunay@st.com>2019-07-12 12:50:54 +0300
commit0e9fb25f71a479a035145ce3977f10c4cfc7ac36 (patch)
treec1c4d7e8ceb2477761a25ea88a48b60d476f90c9 /drivers/mmc/stm32_sdmmc2.c
parent585289b4fc47a8d745bf922b86f4adc69b24088e (diff)
downloadu-boot-0e9fb25f71a479a035145ce3977f10c4cfc7ac36.tar.xz
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>
Diffstat (limited to 'drivers/mmc/stm32_sdmmc2.c')
-rw-r--r--drivers/mmc/stm32_sdmmc2.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mmc/stm32_sdmmc2.c b/drivers/mmc/stm32_sdmmc2.c
index ed31ca126e..867ed569eb 100644
--- a/drivers/mmc/stm32_sdmmc2.c
+++ b/drivers/mmc/stm32_sdmmc2.c
@@ -669,6 +669,7 @@ static int stm32_sdmmc2_probe(struct udevice *dev)
switch (dev_read_u32_default(dev, "bus-width", 1)) {
case 8:
cfg->host_caps |= MMC_MODE_8BIT;
+ /* fall through */
case 4:
cfg->host_caps |= MMC_MODE_4BIT;
break;
@@ -692,7 +693,7 @@ clk_free:
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);