summaryrefslogtreecommitdiffstats
path: root/drivers/mci/atmel_mci.c
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2011-07-16 17:42:09 +0800
committerJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2011-07-18 07:57:50 +0800
commita42dc1226b3051c152da3b6e05c967b7169054b7 (patch)
tree475597214f76af41666af23af667fb71b9b289b6 /drivers/mci/atmel_mci.c
parent1413523c99c034e8bc65669c779f7674b191f2e6 (diff)
downloadbarebox-a42dc1226b3051c152da3b6e05c967b7169054b7.tar.gz
barebox-a42dc1226b3051c152da3b6e05c967b7169054b7.tar.xz
atmel_mci: switch to "struct resource"
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Diffstat (limited to 'drivers/mci/atmel_mci.c')
-rw-r--r--drivers/mci/atmel_mci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mci/atmel_mci.c b/drivers/mci/atmel_mci.c
index d8bcf8159b..70041bad66 100644
--- a/drivers/mci/atmel_mci.c
+++ b/drivers/mci/atmel_mci.c
@@ -456,7 +456,7 @@ static int mci_probe(struct device_d *hw_dev)
if (pd->bus_width == 8)
host->mci.host_caps |= MMC_MODE_8BIT;
- host->base = (void __iomem *)hw_dev->map_base;
+ host->base = (void __iomem *)hw_dev->resource[0].start;
host->hw_dev = hw_dev;
hw_dev->priv = host;
host->clk = clk_get(hw_dev, "mci_clk");