]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: wm8962: balance pm_runtime_enable
authorJiada Wang <jiada_wang@mentor.com>
Wed, 30 Sep 2015 04:54:13 +0000 (13:54 +0900)
committerMark Brown <broonie@kernel.org>
Wed, 30 Sep 2015 18:10:58 +0000 (19:10 +0100)
commit19f7dcc1933c993e45ea25a002c78fbaed3a952b
tree831d1d498cd81e4b0a966feea0a50274a3c69966
parent48fdd7874f07dfb3a661edca7ea1d4807bb4ccb0
ASoC: wm8962: balance pm_runtime_enable

pm_runtime_enable is called in probe to enable runtime PM
for wm8962 codec, but pm_runtime_disable isn't called in remove
callback, nor is called in error path if probe fails after runtime
PM is enabled, this causes unbalanced pm_runtime_enable.

This patch Adds pm_runtime_disable in remove callback and error path,
to balance pm_runtime_enable.

Signed-off-by: Jiada Wang <jiada_wang@mentor.com>
Acked-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wm8962.c