summaryrefslogtreecommitdiffstats
path: root/drivers/mci/mxs.c
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2011-07-18 20:17:04 +0800
committerJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2011-07-23 13:52:17 +0800
commit4c542622cb07354c410680e0a6782508179f9e5f (patch)
tree00cc006fe312270c79cee16ee112d36a6935e4c9 /drivers/mci/mxs.c
parent6dd91ca9b33331012a6fdf961f250f13fb9b50a4 (diff)
downloadbarebox-4c542622cb07354c410680e0a6782508179f9e5f.tar.gz
barebox-4c542622cb07354c410680e0a6782508179f9e5f.tar.xz
mci: switch to "struct resource"
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Diffstat (limited to 'drivers/mci/mxs.c')
-rw-r--r--drivers/mci/mxs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mci/mxs.c b/drivers/mci/mxs.c
index c6ae1cb1fd..a47762076c 100644
--- a/drivers/mci/mxs.c
+++ b/drivers/mci/mxs.c
@@ -702,7 +702,7 @@ static int mxs_mci_probe(struct device_d *hw_dev)
host->send_cmd = mxs_mci_request,
host->set_ios = mxs_mci_set_ios,
host->init = mxs_mci_initialize,
- mxs_mci->regs = (void *)hw_dev->map_base;
+ mxs_mci->regs = dev_request_mem_region(dev, 0);
/* feed forward the platform specific values */
host->voltages = pd->voltages;
@@ -713,7 +713,7 @@ static int mxs_mci_probe(struct device_d *hw_dev)
#endif
#ifdef CONFIG_ARCH_IMX28
/* one dedicated clock per unit */
- switch (hw_dev->map_base) {
+ switch (hw_dev->resource[0].start) {
case IMX_SSP0_BASE:
mxs_mci->index = 0;
break;