summaryrefslogtreecommitdiffstats
path: root/sound/soc/mediatek/mtk-afe-pcm.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-08-10 01:28:09 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-08-10 01:28:09 +0200
commit5d44f4b3484e85c8d4527ecaca5e536da774ae21 (patch)
tree5c699fd097844ecdf30ef9b47444064d713ac410 /sound/soc/mediatek/mtk-afe-pcm.c
parenttoshiba laptop: replace ioremap_cache with ioremap (diff)
parentLinux 4.2-rc6 (diff)
downloadlinux-5d44f4b3484e85c8d4527ecaca5e536da774ae21.tar.xz
linux-5d44f4b3484e85c8d4527ecaca5e536da774ae21.zip
Merge 4.2-rc6 into char-misc-next
We want the fixes in Linus's tree in here as well. Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'sound/soc/mediatek/mtk-afe-pcm.c')
-rw-r--r--sound/soc/mediatek/mtk-afe-pcm.c2
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:
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;