summaryrefslogtreecommitdiff
path: root/drivers/mmc/fsl_esdhc_imx.c
diff options
context:
space:
mode:
authorHeiko Schocher <hs@denx.de>2021-01-15 12:37:09 +0300
committerStefano Babic <sbabic@denx.de>2021-01-23 15:40:29 +0300
commit50125bd5e62712c40d4338ce209a103703fdced5 (patch)
tree0906038b73145f6a34bf6ca178431b76d26ee6cd /drivers/mmc/fsl_esdhc_imx.c
parent5b3c76e888bcfce7c74a47cfdb67878870d59015 (diff)
downloadu-boot-50125bd5e62712c40d4338ce209a103703fdced5.tar.xz
mmc: fsl_esdhc_imx.c: fix compiler warning
prevent unsued variable compiler warning if DM_REGULATOR is not set. Signed-off-by: Heiko Schocher <hs@denx.de>
Diffstat (limited to 'drivers/mmc/fsl_esdhc_imx.c')
-rw-r--r--drivers/mmc/fsl_esdhc_imx.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mmc/fsl_esdhc_imx.c b/drivers/mmc/fsl_esdhc_imx.c
index f47a095c50..8ac859797f 100644
--- a/drivers/mmc/fsl_esdhc_imx.c
+++ b/drivers/mmc/fsl_esdhc_imx.c
@@ -790,7 +790,9 @@ static int esdhc_set_voltage(struct mmc *mmc)
{
struct fsl_esdhc_priv *priv = dev_get_priv(mmc->dev);
struct fsl_esdhc *regs = priv->esdhc_regs;
+#if CONFIG_IS_ENABLED(DM_REGULATOR)
int ret;
+#endif
priv->signal_voltage = mmc->signal_voltage;
switch (mmc->signal_voltage) {