summaryrefslogtreecommitdiffstats
path: root/drivers/mci/atmel_mci.c
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2011-07-19 19:17:23 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2011-07-20 08:25:43 +0200
commit358ab3eb849081e5d99a4b4d7d79a9edbd711e28 (patch)
tree81c836cf4182c974ef214e83d3529eb115070249 /drivers/mci/atmel_mci.c
parenteb18395e0743974fd9fad8c0e5005932074ffe84 (diff)
downloadbarebox-358ab3eb849081e5d99a4b4d7d79a9edbd711e28.tar.gz
barebox-358ab3eb849081e5d99a4b4d7d79a9edbd711e28.tar.xz
atmel/drivers: switch to dev_request_mem_region
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
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 70041bad66..b4489dd19e 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->resource[0].start;
+ host->base = dev_request_mem_region(hw_dev, 0);
host->hw_dev = hw_dev;
hw_dev->priv = host;
host->clk = clk_get(hw_dev, "mci_clk");