[alsa-devel] [PATCH 1/2] ASoC: dapm: Use devm_clk_get()

Liam Girdwood lrg at ti.com
Mon Jun 4 11:36:41 CEST 2012


On Mon, 2012-06-04 at 08:19 +0100, Mark Brown wrote:
> Signed-off-by: Mark Brown <broonie at opensource.wolfsonmicro.com>
> ---
>  sound/soc/soc-dapm.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c
> index 3bb7a6f..a66379a 100644
> --- a/sound/soc/soc-dapm.c
> +++ b/sound/soc/soc-dapm.c
> @@ -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",

Both 

Acked-by: Liam Girdwood <lrg at ti.com>



More information about the Alsa-devel mailing list