ASoC: dapm: Use devm_clk_get()
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 4 Jun 2012 07:14:13 +0000 (08:14 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 4 Jun 2012 09:49:11 +0000 (10:49 +0100)
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Liam Girdwood <lrg@ti.com>
sound/soc/soc-dapm.c

index 3bb7a6f..a66379a 100644 (file)
@@ -2902,7 +2902,7 @@ snd_soc_dapm_new_control(struct snd_soc_dapm_context *dapm,
                }
                break;
        case snd_soc_dapm_clock_supply:
-               w->clk = clk_get(dapm->dev, w->name);
+               w->clk = devm_clk_get(dapm->dev, w->name);
                if (IS_ERR(w->clk)) {
                        ret = PTR_ERR(w->clk);
                        dev_err(dapm->dev, "Failed to request %s: %d\n",