Skip to contentSkip to conversation

mmc: renesas-sdhi: Use priv directly

PATCH New Marek Vasut 1 participant 1 message Aug 30, 2018 MMC, SD and SDIO

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mmc: renesas-sdhi: Use priv directly

The dev_get_priv(dev) is used twice in the probe function. Replace the second invocation with priv variable.

Cc Masahiro Yamada <[email protected]>
Cc Nobuhiro Iwamatsu <[email protected]>
---
 drivers/mmc/renesas-sdhi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mmc/renesas-sdhi.c +1 -1
index ecdb088ac4..f8dc5f57ce 100644
@@ -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;
 }
Signature · 1 line
2.18.0