diff mbox

[U-Boot] driver: mmc: fsl_esdhc: Fix compiling warning

Message ID 1502237255-17597-1-git-send-email-york.sun@nxp.com
State Accepted
Commit 9bb272e90acf7182311dc524df69b125eac92a53
Delegated to: York Sun
Headers show

Commit Message

York Sun Aug. 9, 2017, 12:07 a.m. UTC
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 | 2 ++
 1 file changed, 2 insertions(+)

Comments

York Sun Aug. 10, 2017, 3:36 p.m. UTC | #1
On 08/08/2017 05:07 PM, York Sun wrote:
> 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>
> ---

Applied to fsl-qoriq master, awaiting upstream.

York
diff mbox

Patch

diff --git a/drivers/mmc/fsl_esdhc.c b/drivers/mmc/fsl_esdhc.c
index c017e80..b69c9b7 100644
--- a/drivers/mmc/fsl_esdhc.c
+++ b/drivers/mmc/fsl_esdhc.c
@@ -966,7 +966,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;