diff options
author | Fabio Estevam <fabio.estevam@freescale.com> | 2013-06-10 12:26:05 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-06-12 11:06:48 -0400 |
commit | b9840124d699614f1429748e43827b1fb35c1138 (patch) | |
tree | 77b8c5b1f1620c342ed23554becb2fe776bf710a | |
parent | 77845b11a35f293a344fe868852e8c61498ae777 (diff) |
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>
-rw-r--r-- | sound/soc/fsl/imx-sgtl5000.c | 2 |
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) | |||
128 | goto fail; | 128 | goto fail; |
129 | } | 129 | } |
130 | 130 | ||
131 | data->codec_clk = clk_get(&codec_dev->dev, NULL); | 131 | data->codec_clk = devm_clk_get(&codec_dev->dev, NULL); |
132 | if (IS_ERR(data->codec_clk)) | 132 | if (IS_ERR(data->codec_clk)) |
133 | goto fail; | 133 | goto fail; |
134 | 134 | ||