ASoC: img-i2s-out: Fix runtime PM imbalance on error
authorDinghao Liu <dinghao.liu@zju.edu.cn>
Fri, 29 May 2020 01:22:28 +0000 (09:22 +0800)
committerMark Brown <broonie@kernel.org>
Fri, 29 May 2020 12:30:04 +0000 (13:30 +0100)
commit65bd91dd6957390c42a0491b9622cf31a2cdb140
tree0bdca9b2c17c3a3c495a4ca04502e6004bbfc462
parent4a0434502191347ba8f99468f2fb2cdddc20d381
ASoC: img-i2s-out: 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: Dinghao Liu <dinghao.liu@zju.edu.cn>
Link: https://lore.kernel.org/r/20200529012230.5863-1-dinghao.liu@zju.edu.cn
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/img/img-i2s-out.c