Commit 127c5cad authored by Fabio Estevam's avatar Fabio Estevam Committed by Mark Brown

ASoC: fsl: imx-audmux: Use devm_clk_get()

By using devm_clk_get() we can save a call to clk_put().
Signed-off-by: default avatarFabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent c1963c37
...@@ -262,7 +262,7 @@ static int imx_audmux_probe(struct platform_device *pdev) ...@@ -262,7 +262,7 @@ static int imx_audmux_probe(struct platform_device *pdev)
return PTR_ERR(pinctrl); return PTR_ERR(pinctrl);
} }
audmux_clk = clk_get(&pdev->dev, "audmux"); audmux_clk = devm_clk_get(&pdev->dev, "audmux");
if (IS_ERR(audmux_clk)) { if (IS_ERR(audmux_clk)) {
dev_dbg(&pdev->dev, "cannot get clock: %ld\n", dev_dbg(&pdev->dev, "cannot get clock: %ld\n",
PTR_ERR(audmux_clk)); PTR_ERR(audmux_clk));
...@@ -282,7 +282,6 @@ static int imx_audmux_remove(struct platform_device *pdev) ...@@ -282,7 +282,6 @@ static int imx_audmux_remove(struct platform_device *pdev)
{ {
if (audmux_type == IMX31_AUDMUX) if (audmux_type == IMX31_AUDMUX)
audmux_debugfs_remove(); audmux_debugfs_remove();
clk_put(audmux_clk);
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