projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e30b978
)
mmc: sdhci-of-arasan: Call OF parsing for MMC
author
Michal Simek
<michal.simek@xilinx.com>
Tue, 7 Apr 2015 05:57:32 +0000
(07:57 +0200)
committer
Ulf Hansson
<ulf.hansson@linaro.org>
Wed, 8 Apr 2015 10:05:11 +0000
(12:05 +0200)
Also check MMC OF properties. The controller supports MMC too.
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-of-arasan.c
patch
|
blob
|
history
diff --git
a/drivers/mmc/host/sdhci-of-arasan.c
b/drivers/mmc/host/sdhci-of-arasan.c
index
129079f
..
6287d42
100644
(file)
--- a/
drivers/mmc/host/sdhci-of-arasan.c
+++ b/
drivers/mmc/host/sdhci-of-arasan.c
@@
-173,6
+173,12
@@
static int sdhci_arasan_probe(struct platform_device *pdev)
pltfm_host->priv = sdhci_arasan;
pltfm_host->clk = clk_xin;
+ ret = mmc_of_parse(host->mmc);
+ if (ret) {
+ dev_err(&pdev->dev, "parsing dt failed (%u)\n", ret);
+ goto clk_disable_all;
+ }
+
ret = sdhci_add_host(host);
if (ret)
goto err_pltfm_free;