mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-11-28 22:21:49 +01:00
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>
This commit is contained in:
parent
5b3c76e888
commit
50125bd5e6
@ -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_priv *priv = dev_get_priv(mmc->dev);
|
||||||
struct fsl_esdhc *regs = priv->esdhc_regs;
|
struct fsl_esdhc *regs = priv->esdhc_regs;
|
||||||
|
#if CONFIG_IS_ENABLED(DM_REGULATOR)
|
||||||
int ret;
|
int ret;
|
||||||
|
#endif
|
||||||
|
|
||||||
priv->signal_voltage = mmc->signal_voltage;
|
priv->signal_voltage = mmc->signal_voltage;
|
||||||
switch (mmc->signal_voltage) {
|
switch (mmc->signal_voltage) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user