[PATCH 10/19] mci i.MX: convert to struct resource
Sascha Hauer
s.hauer at pengutronix.de
Tue Jul 19 04:39:54 EDT 2011
Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
drivers/mci/imx.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/mci/imx.c b/drivers/mci/imx.c
index 8525692..1f96e96 100644
--- a/drivers/mci/imx.c
+++ b/drivers/mci/imx.c
@@ -493,7 +493,7 @@ static int mxcmci_probe(struct device_d *dev)
host->mci.init = mxcmci_init;
host->mci.host_caps = MMC_MODE_4BIT;
- host->base = (struct mxcmci_regs *)dev->map_base;
+ host->base = dev_request_mem_region(dev, 0);
host->mci.voltages = MMC_VDD_32_33 | MMC_VDD_33_34;
--
1.7.5.4
More information about the barebox
mailing list