summaryrefslogtreecommitdiffstats
path: root/drivers/mci/atmel_mci.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2011-08-15 09:44:04 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2011-08-17 09:36:30 +0200
commitc41360cd207f91a5b19732c97e568846c53675f0 (patch)
treebc638d30fc0c4e006ee685d59cd6fbe906f8b2c9 /drivers/mci/atmel_mci.c
parentad140020b8229c14c9b18fb0dd0c5af3373cdf56 (diff)
downloadbarebox-c41360cd207f91a5b19732c97e568846c53675f0.tar.gz
barebox-c41360cd207f91a5b19732c97e568846c53675f0.tar.xz
mci: parent fixups
Make the mci host a child of the hardware device and the disk a child of the mci host. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/mci/atmel_mci.c')
-rw-r--r--drivers/mci/atmel_mci.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mci/atmel_mci.c b/drivers/mci/atmel_mci.c
index b4489dd19e..71aec16fa2 100644
--- a/drivers/mci/atmel_mci.c
+++ b/drivers/mci/atmel_mci.c
@@ -449,6 +449,7 @@ static int mci_probe(struct device_d *hw_dev)
host->mci.send_cmd = mci_request;
host->mci.set_ios = mci_set_ios;
host->mci.init = mci_reset;
+ host->mci.hw_dev = hw_dev;
host->mci.host_caps = pd->host_caps;
if (pd->bus_width >= 4)