aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mmc/host/sdhci-pxav3.c
diff options
context:
space:
mode:
authorSebastian Hesselbarth <sebastian.hesselbarth@gmail.com>2014-10-21 05:22:39 -0400
committerUlf Hansson <ulf.hansson@linaro.org>2014-11-10 06:40:47 -0500
commit01ae1070cbb5fbb3bffa0df44e422521df2b4ab1 (patch)
treebe758cfd46f8e2bcc797a4e9c2320d87f05955c6 /drivers/mmc/host/sdhci-pxav3.c
parent8c96a7a3310a21a4a3f827b9c42636aa04a47f9e (diff)
mmc: sdhci-pxav3: Try to get named I/O clock first
With support for more than one clock, we'll need to distinguish between the clock by name. Change clock probing to first try to get "io" clock before falling back to unnamed clock. Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc/host/sdhci-pxav3.c')
-rw-r--r--drivers/mmc/host/sdhci-pxav3.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/mmc/host/sdhci-pxav3.c b/drivers/mmc/host/sdhci-pxav3.c
index a34a589670e6..3dfd97977515 100644
--- a/drivers/mmc/host/sdhci-pxav3.c
+++ b/drivers/mmc/host/sdhci-pxav3.c
@@ -309,7 +309,9 @@ static int sdhci_pxav3_probe(struct platform_device *pdev)
309 pltfm_host = sdhci_priv(host); 309 pltfm_host = sdhci_priv(host);
310 pltfm_host->priv = pxa; 310 pltfm_host->priv = pxa;
311 311
312 pxa->clk_io = devm_clk_get(dev, NULL); 312 pxa->clk_io = devm_clk_get(dev, "io");
313 if (IS_ERR(pxa->clk_io))
314 pxa->clk_io = devm_clk_get(dev, NULL);
313 if (IS_ERR(pxa->clk_io)) { 315 if (IS_ERR(pxa->clk_io)) {
314 dev_err(dev, "failed to get io clock\n"); 316 dev_err(dev, "failed to get io clock\n");
315 ret = PTR_ERR(pxa->clk_io); 317 ret = PTR_ERR(pxa->clk_io);