aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mmc
diff options
context:
space:
mode:
authorMichal Simek <michal.simek@xilinx.com>2015-04-07 01:57:32 -0400
committerUlf Hansson <ulf.hansson@linaro.org>2015-04-08 06:05:11 -0400
commit16b23787fc709fe60c5d2bd05927b1a3da33d4e9 (patch)
treedd98c0869cf8c3232831db9b3d153bc70f2ef326 /drivers/mmc
parente30b978f17446d10dcb92c6979b4da9991a18005 (diff)
mmc: sdhci-of-arasan: Call OF parsing for MMC
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>
Diffstat (limited to 'drivers/mmc')
-rw-r--r--drivers/mmc/host/sdhci-of-arasan.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/mmc/host/sdhci-of-arasan.c b/drivers/mmc/host/sdhci-of-arasan.c
index 129079fb53bf..6287d426c96b 100644
--- 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)
173 pltfm_host->priv = sdhci_arasan; 173 pltfm_host->priv = sdhci_arasan;
174 pltfm_host->clk = clk_xin; 174 pltfm_host->clk = clk_xin;
175 175
176 ret = mmc_of_parse(host->mmc);
177 if (ret) {
178 dev_err(&pdev->dev, "parsing dt failed (%u)\n", ret);
179 goto clk_disable_all;
180 }
181
176 ret = sdhci_add_host(host); 182 ret = sdhci_add_host(host);
177 if (ret) 183 if (ret)
178 goto err_pltfm_free; 184 goto err_pltfm_free;