23 Jun
2015
23 Jun
'15
12:14 p.m.
On Tue, Jun 23, 2015 at 03:45:02PM +0800, Koro Chen wrote:
So I think maybe it should be modified like this?
static int mtk_afe_pcm_dev_remove(struct platform_device *pdev) { pm_runtime_disable(&pdev->dev);
if (!pm_runtime_status_suspended(&pdev->dev))
mtk_afe_runtime_suspend(&pdev->dev); snd_soc_unregister_component(&pdev->dev); snd_soc_unregister_platform(&pdev->dev); return 0;
Yes.
It can fix both build warning and unbalanced calls of suspend/resume. Should I send a patch for this?
Yes, please.