Skip to content

Commit

Permalink
mmc: sdhci-of-arasan: Call OF parsing for MMC
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Michal Simek authored and Ulf Hansson committed Apr 8, 2015
1 parent e30b978 commit 16b2378
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions drivers/mmc/host/sdhci-of-arasan.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 16b2378

Please sign in to comment.