summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYangbo Lu <yangbo.lu@freescale.com>2015-09-24 05:47:46 (GMT)
committerYangbo Lu <yangbo.lu@freescale.com>2015-09-24 08:16:08 (GMT)
commite48b8585c32e91f831c43692dd24e9fee5924a03 (patch)
tree90dccf3cc23966ecccafb09c10f32ba6de9dd4bc
parentfb9a06b32af54e72026d8dbe2b06c2ceb0c246aa (diff)
downloadlinux-fsl-qoriq-e48b8585c32e91f831c43692dd24e9fee5924a03.tar.xz
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 <yangbo.lu@freescale.com>
-rw-r--r--drivers/mmc/host/sdhci-of-esdhc.c5
1 files changed, 3 insertions, 2 deletions
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 <linux/delay.h>
#include <linux/module.h>
#include <linux/mmc/host.h>
+#include <linux/of_address.h>
#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);
}
}