diff options
author | York Sun <york.sun@nxp.com> | 2017-08-08 15:45:13 -0700 |
---|---|---|
committer | York Sun <york.sun@nxp.com> | 2017-08-09 09:11:29 -0700 |
commit | 9bb272e90acf7182311dc524df69b125eac92a53 (patch) | |
tree | 76e90be79055d31aecd973d2198158e62fb567eb /drivers/mmc | |
parent | eaa90e5df2a4a1cb12fb73571978a9379242d0b5 (diff) | |
download | u-boot-9bb272e90acf7182311dc524df69b125eac92a53.tar.gz |
driver: mmc: fsl_esdhc: Fix compiling warning
Commit 4483b7eb added variable vqmmc_dev but only uses it under
CONFIG_DM_REGULATOR. Add the same macro to variable declaration to
get rid of compiling warning.
Signed-off-by: York Sun <york.sun@nxp.com>
Diffstat (limited to 'drivers/mmc')
-rw-r--r-- | drivers/mmc/fsl_esdhc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mmc/fsl_esdhc.c b/drivers/mmc/fsl_esdhc.c index 3abd2d30af..2bf25ece14 100644 --- a/drivers/mmc/fsl_esdhc.c +++ b/drivers/mmc/fsl_esdhc.c @@ -968,7 +968,9 @@ static int fsl_esdhc_probe(struct udevice *dev) struct fsl_esdhc_priv *priv = dev_get_priv(dev); const void *fdt = gd->fdt_blob; int node = dev_of_offset(dev); +#ifdef CONFIG_DM_REGULATOR struct udevice *vqmmc_dev; +#endif fdt_addr_t addr; unsigned int val; int ret; |