diff options
author | Fabio Estevam <fabio.estevam@freescale.com> | 2013-03-12 19:51:28 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2013-03-13 06:39:31 -0400 |
commit | 127c5cad87099fef816c8597258fc06285d17bb1 (patch) | |
tree | 5565f1cda3fb1ad73c66efeab2c734b10a2ca77f /sound/soc/fsl/imx-audmux.c | |
parent | c1963c37ad4425cbd7a05e386167614efdfdc9ce (diff) |
ASoC: fsl: imx-audmux: Use devm_clk_get()
By using devm_clk_get() we can save a call to clk_put().
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/fsl/imx-audmux.c')
-rw-r--r-- | sound/soc/fsl/imx-audmux.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/soc/fsl/imx-audmux.c b/sound/soc/fsl/imx-audmux.c index 3f333e5b4673..47f046a8fdab 100644 --- a/sound/soc/fsl/imx-audmux.c +++ b/sound/soc/fsl/imx-audmux.c | |||
@@ -262,7 +262,7 @@ static int imx_audmux_probe(struct platform_device *pdev) | |||
262 | return PTR_ERR(pinctrl); | 262 | return PTR_ERR(pinctrl); |
263 | } | 263 | } |
264 | 264 | ||
265 | audmux_clk = clk_get(&pdev->dev, "audmux"); | 265 | audmux_clk = devm_clk_get(&pdev->dev, "audmux"); |
266 | if (IS_ERR(audmux_clk)) { | 266 | if (IS_ERR(audmux_clk)) { |
267 | dev_dbg(&pdev->dev, "cannot get clock: %ld\n", | 267 | dev_dbg(&pdev->dev, "cannot get clock: %ld\n", |
268 | PTR_ERR(audmux_clk)); | 268 | PTR_ERR(audmux_clk)); |
@@ -282,7 +282,6 @@ static int imx_audmux_remove(struct platform_device *pdev) | |||
282 | { | 282 | { |
283 | if (audmux_type == IMX31_AUDMUX) | 283 | if (audmux_type == IMX31_AUDMUX) |
284 | audmux_debugfs_remove(); | 284 | audmux_debugfs_remove(); |
285 | clk_put(audmux_clk); | ||
286 | 285 | ||
287 | return 0; | 286 | return 0; |
288 | } | 287 | } |