Skip to content

Commit

Permalink
ASoC: samsung-ac97: Use devm_clk_get()
Browse files Browse the repository at this point in the history
Reviewed-by: Jingoo Han <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
  • Loading branch information
broonie committed Jun 27, 2013
1 parent 9e895ac commit 5d45ee3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions sound/soc/samsung/ac97.c
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ static int s3c_ac97_probe(struct platform_device *pdev)
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)) {
dev_err(&pdev->dev, "ac97 failed to get ac97_clock\n");
ret = -ENODEV;
Expand Down Expand Up @@ -480,7 +480,6 @@ static int s3c_ac97_probe(struct platform_device *pdev)
err4:
err3:
clk_disable_unprepare(s3c_ac97.ac97_clk);
clk_put(s3c_ac97.ac97_clk);
err2:
iounmap(s3c_ac97.regs);
err1:
Expand All @@ -501,7 +500,6 @@ static int s3c_ac97_remove(struct platform_device *pdev)
free_irq(irq_res->start, NULL);

clk_disable_unprepare(s3c_ac97.ac97_clk);
clk_put(s3c_ac97.ac97_clk);

iounmap(s3c_ac97.regs);

Expand Down

0 comments on commit 5d45ee3

Please sign in to comment.