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>
This commit is contained in:
parent
a89c472d8b
commit
edf9857906
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue