[U-Boot] [PATCH] mmc: renesas-sdhi: Use priv directly
Marek Vasut
marek.vasut at gmail.com
Thu Aug 30 13:32:42 UTC 2018
The dev_get_priv(dev) is used twice in the probe function.
Replace the second invocation with priv variable.
Signed-off-by: Marek Vasut <marek.vasut+renesas at gmail.com>
Cc: Masahiro Yamada <yamada.masahiro at socionext.com>
Cc: Nobuhiro Iwamatsu <iwamatsu at nigauri.org>
---
drivers/mmc/renesas-sdhi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/mmc/renesas-sdhi.c b/drivers/mmc/renesas-sdhi.c
index ecdb088ac4..f8dc5f57ce 100644
--- a/drivers/mmc/renesas-sdhi.c
+++ b/drivers/mmc/renesas-sdhi.c
@@ -374,7 +374,7 @@ static int renesas_sdhi_probe(struct udevice *dev)
ret = tmio_sd_probe(dev, quirks);
#if CONFIG_IS_ENABLED(MMC_HS200_SUPPORT)
if (!ret)
- renesas_sdhi_reset_tuning(dev_get_priv(dev));
+ renesas_sdhi_reset_tuning(priv);
#endif
return ret;
}
--
2.18.0
More information about the U-Boot
mailing list