[PATCH] mci: mxs: fix 'use resources' conversion

Wolfram Sang w.sang at pengutronix.de
Tue Sep 13 08:52:56 EDT 2011


Commit 4c542622 used the wrong variable name and caused a build failure.

Signed-off-by: Wolfram Sang <w.sang at pengutronix.de>
Cc: Jean-Christophe PLAGNIOL-VILLARD <plagnioj at jcrosoft.com>
---
 drivers/mci/mxs.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/mci/mxs.c b/drivers/mci/mxs.c
index 825ae4d..a84cd67 100644
--- a/drivers/mci/mxs.c
+++ b/drivers/mci/mxs.c
@@ -703,7 +703,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 = dev_request_mem_region(dev, 0);
+	mxs_mci->regs = dev_request_mem_region(hw_dev, 0);
 
 	/* feed forward the platform specific values */
 	host->voltages = pd->voltages;
-- 
1.7.5.4




More information about the barebox mailing list