ASoC: Intel: fix runtime pm imbalance on error
authorJunjie Mao <junjie.mao@enight.me>
Fri, 17 Jul 2015 02:29:00 +0000 (10:29 +0800)
committerMark Brown <broonie@kernel.org>
Fri, 14 Aug 2015 16:41:21 +0000 (17:41 +0100)
commite1d46d30d133e7909e7dde06a4e867225c7e079b
tree7eaad75a3764e9b34ea9a97fcb21b2d1f51f9e8f
parentc9b1e834bc8decaf979344e8121e4ad1ded8dc8a
ASoC: Intel: fix runtime pm imbalance on error

pm_runtime_get_sync() increments the runtime PM usage counter even the
call returns an error code. Thus a pairing decrement is needed on the
error handling path to keep the counter balanced.

Signed-off-by: Junjie Mao <junjie.mao@enight.me>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/atom/sst/sst_drv_interface.c