summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomaz Solc <tomaz.solc@tablix.org>2019-02-18 12:32:18 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2019-02-19 10:07:44 +0100
commita46631e4ec5de72aaf287213a757be6d06cd8274 (patch)
tree776dfb0836e71a3eb9ca366b5cfb3ca37d999602
parent67ec7263ca9e922d07241618f72eb0beb9c739a2 (diff)
downloadbarebox-a46631e4ec5de72aaf287213a757be6d06cd8274.tar.gz
barebox-a46631e4ec5de72aaf287213a757be6d06cd8274.tar.xz
mci: bcm2835: parse other device tree properties.
The driver was missing a call to mci_of_parse() which fills in properties such as "bus-width", "no-sd" into the mci_host struct. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--drivers/mci/mci-bcm2835.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/mci/mci-bcm2835.c b/drivers/mci/mci-bcm2835.c
index e7dbb4f1de..2ed1251672 100644
--- a/drivers/mci/mci-bcm2835.c
+++ b/drivers/mci/mci-bcm2835.c
@@ -506,6 +506,9 @@ static int bcm2835_mci_probe(struct device_d *hw_dev)
host->mci.hw_dev = hw_dev;
host->hw_dev = hw_dev;
host->max_clock = clk_get_rate(clk);
+
+ mci_of_parse(&host->mci);
+
iores = dev_request_mem_resource(hw_dev, 0);
if (IS_ERR(iores)) {
dev_err(host->hw_dev, "Failed request mem region, aborting...\n");