]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
mmc: sdhci-pxav3: Try to get named I/O clock first
authorSebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Tue, 21 Oct 2014 09:22:39 +0000 (11:22 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 10 Nov 2014 11:40:47 +0000 (12:40 +0100)
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>
drivers/mmc/host/sdhci-pxav3.c

index a34a589670e6bae4fa80f91e8d2f23011db28ece..3dfd97977515d9c2f8aaecc97ee14b8aa7921764 100644 (file)
@@ -309,7 +309,9 @@ static int sdhci_pxav3_probe(struct platform_device *pdev)
        pltfm_host = sdhci_priv(host);
        pltfm_host->priv = pxa;
 
-       pxa->clk_io = devm_clk_get(dev, NULL);
+       pxa->clk_io = devm_clk_get(dev, "io");
+       if (IS_ERR(pxa->clk_io))
+               pxa->clk_io = devm_clk_get(dev, NULL);
        if (IS_ERR(pxa->clk_io)) {
                dev_err(dev, "failed to get io clock\n");
                ret = PTR_ERR(pxa->clk_io);