]> git.baikalelectronics.ru Git - uboot.git/commitdiff
mmc: renesas-sdhi: Use priv directly
authorMarek Vasut <marek.vasut+renesas@gmail.com>
Thu, 30 Aug 2018 13:27:26 +0000 (15:27 +0200)
committerMarek Vasut <marex@denx.de>
Thu, 30 Aug 2018 13:32:59 +0000 (15:32 +0200)
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@gmail.com>
Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
drivers/mmc/renesas-sdhi.c

index ecdb088ac4d9d800ce1af58c939884683b064fbe..f8dc5f57ce16af300ffa362b8c550ab32dc14ec0 100644 (file)
@@ -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;
 }