Commit edf98579 authored by Piotr Sroka's avatar Piotr Sroka Committed by Ulf Hansson

mmc: sdhci-cadence: refactor probe function

Use added dev variable for devm_clk_get.
Signed-off-by: default avatarPiotr Sroka <piotrs@cadence.com>
Reviewed-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
Acked-by: default avatarAdrian Hunter <adrian.hunter@intel.com>
Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
parent a89c472d
...@@ -305,7 +305,7 @@ static int sdhci_cdns_probe(struct platform_device *pdev) ...@@ -305,7 +305,7 @@ static int sdhci_cdns_probe(struct platform_device *pdev)
int ret; int ret;
struct device *dev = &pdev->dev; struct device *dev = &pdev->dev;
clk = devm_clk_get(&pdev->dev, NULL); clk = devm_clk_get(dev, NULL);
if (IS_ERR(clk)) if (IS_ERR(clk))
return PTR_ERR(clk); return PTR_ERR(clk);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment