From e48b8585c32e91f831c43692dd24e9fee5924a03 Mon Sep 17 00:00:00 2001 From: Yangbo Lu Date: Thu, 24 Sep 2015 13:47:46 +0800 Subject: mmc: sdhci-of-esdhc: fix compile error on ARM platform Fix two compile errors below, error: implicit declaration of function 'of_iomap' error: implicit declaration of function 'out_be32' Signed-off-by: Yangbo Lu diff --git a/drivers/mmc/host/sdhci-of-esdhc.c b/drivers/mmc/host/sdhci-of-esdhc.c index 359f3d2..e54793c 100644 --- a/drivers/mmc/host/sdhci-of-esdhc.c +++ b/drivers/mmc/host/sdhci-of-esdhc.c @@ -19,6 +19,7 @@ #include #include #include +#include #include "sdhci-pltfm.h" #include "sdhci-esdhc.h" @@ -704,8 +705,8 @@ void esdhc_signal_voltage_switch(struct sdhci_host *host, of_node_put(scfg_node); if (scfg_base) { scfg_sdhciovselcr = 0x408; - out_be32(scfg_base + scfg_sdhciovselcr, - 0x80000001); + iowrite32be(0x80000001, + scfg_base + scfg_sdhciovselcr); iounmap(scfg_base); } } -- cgit v0.10.2