From: Philipp Tomsich Date: Mon, 11 Sep 2017 20:04:21 +0000 (+0200) Subject: rockchip: sdhci: Convert to livetree X-Git-Tag: v2017.11-rc1~87^2~21 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=327b2b35c527d2ec6c8de4fdebb71322c0f085fb;p=u-boot rockchip: sdhci: Convert to livetree Update the Rockchip SDHCI wrapper to support a live device tree. Signed-off-by: Philipp Tomsich Reviewed-by: Simon Glass Acked-by: Philipp Tomsich Version-changes: 2 - use the dev_read_addr_ptr function in rockchip_sdhci.c --- diff --git a/drivers/mmc/rockchip_sdhci.c b/drivers/mmc/rockchip_sdhci.c index f31d329c81..346a42c664 100644 --- a/drivers/mmc/rockchip_sdhci.c +++ b/drivers/mmc/rockchip_sdhci.c @@ -9,7 +9,6 @@ #include #include #include -#include #include #include #include @@ -82,7 +81,7 @@ static int arasan_sdhci_ofdata_to_platdata(struct udevice *dev) struct sdhci_host *host = dev_get_priv(dev); host->name = dev->name; - host->ioaddr = devfdt_get_addr_ptr(dev); + host->ioaddr = dev_read_addr_ptr(dev); #endif return 0;