Commit 5d45ee3c authored by Mark Brown's avatar Mark Brown

ASoC: samsung-ac97: Use devm_clk_get()

Reviewed-by: default avatarJingoo Han <jg1.han@samsung.com>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent 9e895ace
...@@ -440,7 +440,7 @@ static int s3c_ac97_probe(struct platform_device *pdev) ...@@ -440,7 +440,7 @@ static int s3c_ac97_probe(struct platform_device *pdev)
goto err1; goto err1;
} }
s3c_ac97.ac97_clk = clk_get(&pdev->dev, "ac97"); s3c_ac97.ac97_clk = devm_clk_get(&pdev->dev, "ac97");
if (IS_ERR(s3c_ac97.ac97_clk)) { if (IS_ERR(s3c_ac97.ac97_clk)) {
dev_err(&pdev->dev, "ac97 failed to get ac97_clock\n"); dev_err(&pdev->dev, "ac97 failed to get ac97_clock\n");
ret = -ENODEV; ret = -ENODEV;
...@@ -480,7 +480,6 @@ static int s3c_ac97_probe(struct platform_device *pdev) ...@@ -480,7 +480,6 @@ static int s3c_ac97_probe(struct platform_device *pdev)
err4: err4:
err3: err3:
clk_disable_unprepare(s3c_ac97.ac97_clk); clk_disable_unprepare(s3c_ac97.ac97_clk);
clk_put(s3c_ac97.ac97_clk);
err2: err2:
iounmap(s3c_ac97.regs); iounmap(s3c_ac97.regs);
err1: err1:
...@@ -501,7 +500,6 @@ static int s3c_ac97_remove(struct platform_device *pdev) ...@@ -501,7 +500,6 @@ static int s3c_ac97_remove(struct platform_device *pdev)
free_irq(irq_res->start, NULL); free_irq(irq_res->start, NULL);
clk_disable_unprepare(s3c_ac97.ac97_clk); clk_disable_unprepare(s3c_ac97.ac97_clk);
clk_put(s3c_ac97.ac97_clk);
iounmap(s3c_ac97.regs); iounmap(s3c_ac97.regs);
......
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