projects
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b3c76e
)
mmc: fsl_esdhc_imx.c: fix compiler warning
author
Heiko Schocher
<hs@denx.de>
Fri, 15 Jan 2021 09:37:09 +0000
(10:37 +0100)
committer
Stefano Babic
<sbabic@denx.de>
Sat, 23 Jan 2021 12:40:29 +0000
(13:40 +0100)
prevent unsued variable compiler warning if
DM_REGULATOR is not set.
Signed-off-by: Heiko Schocher <hs@denx.de>
drivers/mmc/fsl_esdhc_imx.c
patch
|
blob
|
history
diff --git
a/drivers/mmc/fsl_esdhc_imx.c
b/drivers/mmc/fsl_esdhc_imx.c
index
f47a095
..
8ac8597
100644
(file)
--- 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) {