summaryrefslogtreecommitdiff
path: root/drivers/mmc/host/sdhci-cadence.c
diff options
context:
space:
mode:
authorPiotr Sroka <piotrs@cadence.com>2017-03-21 14:33:26 +0000
committerUlf Hansson <ulf.hansson@linaro.org>2017-04-24 21:41:56 +0200
commitedf985790659503eedd5736ba89ad7e9fd754cf0 (patch)
treea621bb02b139c8b6ea9b8801b9c0dc1c488c5b79 /drivers/mmc/host/sdhci-cadence.c
parenta89c472d8b55c5afc4c79e6e3d1338730034eb01 (diff)
mmc: sdhci-cadence: refactor probe function
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>
Diffstat (limited to 'drivers/mmc/host/sdhci-cadence.c')
-rw-r--r--drivers/mmc/host/sdhci-cadence.c2
1 files changed, 1 insertions, 1 deletions
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);