From: Piotr Sroka Date: Tue, 21 Mar 2017 14:33:26 +0000 (+0000) Subject: mmc: sdhci-cadence: refactor probe function X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=edf985790659503eedd5736ba89ad7e9fd754cf0;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git mmc: sdhci-cadence: refactor probe function Use added dev variable for devm_clk_get. Signed-off-by: Piotr Sroka Reviewed-by: Masahiro Yamada Acked-by: Adrian Hunter Signed-off-by: Ulf Hansson --- diff --git a/drivers/mmc/host/sdhci-cadence.c b/drivers/mmc/host/sdhci-cadence.c index 3a5f3f026b60..7797e98a7541 100644 --- a/drivers/mmc/host/sdhci-cadence.c +++ b/drivers/mmc/host/sdhci-cadence.c @@ -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);