diff options
author | Piotr Sroka <piotrs@cadence.com> | 2017-03-21 15:33:26 +0100 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2017-04-24 21:41:56 +0200 |
commit | edf985790659503eedd5736ba89ad7e9fd754cf0 (patch) | |
tree | a621bb02b139c8b6ea9b8801b9c0dc1c488c5b79 | |
parent | mmc: sdhci-cadence: Update PHY delay configuration (diff) | |
download | linux-edf985790659503eedd5736ba89ad7e9fd754cf0.tar.xz linux-edf985790659503eedd5736ba89ad7e9fd754cf0.zip |
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>
-rw-r--r-- | drivers/mmc/host/sdhci-cadence.c | 2 |
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); |