ASoC: mediatek: Fix unbalanced calls to runtime suspend/resume
authorKoro Chen <koro.chen@mediatek.com>
Tue, 23 Jun 2015 11:01:20 +0000 (19:01 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 23 Jun 2015 11:10:01 +0000 (12:10 +0100)
commit4623a614e87e4f2df08c83b5b9f68af394951dc9
tree5a2b76b84c5cd41dcf7b039e92396f2ae345e28f
parent662e8d917f685011a24492c106737ea5fdff8136
ASoC: mediatek: Fix unbalanced calls to runtime suspend/resume

This adds call to runtime suspend in dev remove. It fixs the problem that
suspend is not called in the case of CONFIG_PM=n. It also fixs build
warning when CONFIG_PM=n.

Signed-off-by: Koro Chen <koro.chen@mediatek.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/mediatek/mtk-afe-pcm.c