From: Fabio Estevam Date: Mon, 10 Jun 2013 16:26:05 +0000 (-0300) Subject: ASoC: imx-sgtl5000: Use devm_clk_get() X-Git-Tag: upstream/snapshot3+hdmi~4491^2~16^2~1^2~13^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b9840124d699614f1429748e43827b1fb35c1138;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git ASoC: imx-sgtl5000: Use devm_clk_get() Commit 9e13f345 (ASoC: sgtl5000: Let the codec acquire its clock) removed the clk_put calls. Let's use devm_clk_get() instead, so that we do not need to call them anymore. Signed-off-by: Fabio Estevam Signed-off-by: Mark Brown --- diff --git a/sound/soc/fsl/imx-sgtl5000.c b/sound/soc/fsl/imx-sgtl5000.c index 823151b..7a8bc12 100644 --- a/sound/soc/fsl/imx-sgtl5000.c +++ b/sound/soc/fsl/imx-sgtl5000.c @@ -128,7 +128,7 @@ static int imx_sgtl5000_probe(struct platform_device *pdev) goto fail; } - data->codec_clk = clk_get(&codec_dev->dev, NULL); + data->codec_clk = devm_clk_get(&codec_dev->dev, NULL); if (IS_ERR(data->codec_clk)) goto fail;