Commit cfe68642 authored by Mark Brown's avatar Mark Brown

ASoC: tegra20-ac97: Convert to devm_clk_get()

Acked-by: default avatarStephen Warren <swarren@nvidia.com>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent ad3ae47b
...@@ -327,7 +327,7 @@ static int tegra20_ac97_platform_probe(struct platform_device *pdev) ...@@ -327,7 +327,7 @@ static int tegra20_ac97_platform_probe(struct platform_device *pdev)
} }
dev_set_drvdata(&pdev->dev, ac97); dev_set_drvdata(&pdev->dev, ac97);
ac97->clk_ac97 = clk_get(&pdev->dev, NULL); ac97->clk_ac97 = devm_clk_get(&pdev->dev, NULL);
if (IS_ERR(ac97->clk_ac97)) { if (IS_ERR(ac97->clk_ac97)) {
dev_err(&pdev->dev, "Can't retrieve ac97 clock\n"); dev_err(&pdev->dev, "Can't retrieve ac97 clock\n");
ret = PTR_ERR(ac97->clk_ac97); ret = PTR_ERR(ac97->clk_ac97);
...@@ -443,7 +443,6 @@ static int tegra20_ac97_platform_probe(struct platform_device *pdev) ...@@ -443,7 +443,6 @@ static int tegra20_ac97_platform_probe(struct platform_device *pdev)
err_unregister_component: err_unregister_component:
snd_soc_unregister_component(&pdev->dev); snd_soc_unregister_component(&pdev->dev);
err_clk_put: err_clk_put:
clk_put(ac97->clk_ac97);
err: err:
return ret; return ret;
} }
...@@ -458,7 +457,6 @@ static int tegra20_ac97_platform_remove(struct platform_device *pdev) ...@@ -458,7 +457,6 @@ static int tegra20_ac97_platform_remove(struct platform_device *pdev)
tegra_asoc_utils_fini(&ac97->util_data); tegra_asoc_utils_fini(&ac97->util_data);
clk_disable_unprepare(ac97->clk_ac97); clk_disable_unprepare(ac97->clk_ac97);
clk_put(ac97->clk_ac97);
return 0; return 0;
} }
......
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