mmc: sdhci-cadence: refactor probe function
authorPiotr Sroka <piotrs@cadence.com>
Tue, 21 Mar 2017 14:33:26 +0000 (14:33 +0000)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 24 Apr 2017 19:41:56 +0000 (21:41 +0200)
Use added dev variable for devm_clk_get.

Signed-off-by: Piotr Sroka <piotrs@cadence.com>
Reviewed-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-cadence.c

index 3a5f3f026b6004977955e06a4f94dc0ea0eaafc1..7797e98a7541d1ce4d485c04a5913f0c979c6bb9 100644 (file)
@@ -305,7 +305,7 @@ static int sdhci_cdns_probe(struct platform_device *pdev)
        int ret;
        struct device *dev = &pdev->dev;
 
-       clk = devm_clk_get(&pdev->dev, NULL);
+       clk = devm_clk_get(dev, NULL);
        if (IS_ERR(clk))
                return PTR_ERR(clk);