diff options
| -rw-r--r-- | sound/soc/mediatek/mtk-afe-pcm.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/mediatek/mtk-afe-pcm.c b/sound/soc/mediatek/mtk-afe-pcm.c index cc228db5fb76..9863da73dfe0 100644 --- a/sound/soc/mediatek/mtk-afe-pcm.c +++ b/sound/soc/mediatek/mtk-afe-pcm.c | |||
| @@ -1199,6 +1199,8 @@ err_pm_disable: | |||
| 1199 | static int mtk_afe_pcm_dev_remove(struct platform_device *pdev) | 1199 | static int mtk_afe_pcm_dev_remove(struct platform_device *pdev) |
| 1200 | { | 1200 | { |
| 1201 | pm_runtime_disable(&pdev->dev); | 1201 | pm_runtime_disable(&pdev->dev); |
| 1202 | if (!pm_runtime_status_suspended(&pdev->dev)) | ||
| 1203 | mtk_afe_runtime_suspend(&pdev->dev); | ||
| 1202 | snd_soc_unregister_component(&pdev->dev); | 1204 | snd_soc_unregister_component(&pdev->dev); |
| 1203 | snd_soc_unregister_platform(&pdev->dev); | 1205 | snd_soc_unregister_platform(&pdev->dev); |
| 1204 | return 0; | 1206 | return 0; |
