[alsa-devel] [PATCH 1/2] ASoC: sh: fsi: Add runtime PM support

Kuninori Morimoto morimoto.kuninori at renesas.com
Mon Nov 9 03:59:27 CET 2009


Dear Mark

> -	snprintf(clk_name, sizeof(clk_name), "spu%d", pdev->id);
> -	master->clk = clk_get(NULL, clk_name);
> -	if (IS_ERR(master->clk)) {
> -		dev_err(&pdev->dev, "cannot get %s mstp\n", clk_name);
> -		ret = -EIO;
> -		goto exit_iounmap;
> -	}
> +	pm_suspend_ignore_children(&pdev->dev, true);
> +	pm_runtime_enable(&pdev->dev);
> +	pm_runtime_resume(&pdev->dev);
>  
>  	fsi_soc_dai[0].dev		= &pdev->dev;
>  	fsi_soc_dai[1].dev		= &pdev->dev;

Oops.
I should call pm_runtime_disable if failed.
Please give me a chance to send v2 patch !

Best regards
--
Kuninori Morimoto
 


More information about the Alsa-devel mailing list