]> git.sur5r.net Git - u-boot/commitdiff
driver: mmc: fsl_esdhc: Fix compiling warning
authorYork Sun <york.sun@nxp.com>
Tue, 8 Aug 2017 22:45:13 +0000 (15:45 -0700)
committerYork Sun <york.sun@nxp.com>
Wed, 9 Aug 2017 16:11:29 +0000 (09:11 -0700)
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>
drivers/mmc/fsl_esdhc.c

index 3abd2d30aff89cb821645e5d79884f2cb0f85202..2bf25ece149e2a673d7f17438ea2f5d0ed16e8f8 100644 (file)
@@ -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;