summaryrefslogtreecommitdiffstats
path: root/sound/soc/fsl/imx-sgtl5000.c
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@freescale.com>2013-06-10 13:26:05 -0300
committerMark Brown <broonie@linaro.org>2013-06-12 16:06:48 +0100
commitb9840124d699614f1429748e43827b1fb35c1138 (patch)
tree77b8c5b1f1620c342ed23554becb2fe776bf710a /sound/soc/fsl/imx-sgtl5000.c
parent77845b11a35f293a344fe868852e8c61498ae777 (diff)
downloadblackbird-obmc-linux-b9840124d699614f1429748e43827b1fb35c1138.tar.gz
blackbird-obmc-linux-b9840124d699614f1429748e43827b1fb35c1138.zip
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 <fabio.estevam@freescale.com> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc/fsl/imx-sgtl5000.c')
-rw-r--r--sound/soc/fsl/imx-sgtl5000.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/fsl/imx-sgtl5000.c b/sound/soc/fsl/imx-sgtl5000.c
index 823151b7653b..7a8bc1220b2e 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;
OpenPOWER on IntegriCloud