]> git.baikalelectronics.ru Git - kernel.git/commit
regmap: irq: call pm_runtime_put in pm_runtime_get_sync failed case
authorLi Fei <fei.li@intel.com>
Thu, 28 Feb 2013 07:37:11 +0000 (15:37 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 1 Mar 2013 06:54:16 +0000 (14:54 +0800)
commit143ee9a5a44cc10436dbbf737557245bdc1ac771
treef59b3424585aa8e4383626df29486127826b63be
parent4e99664cf93a08129f014c85ebb8da4f8cf026ca
regmap: irq: call pm_runtime_put in pm_runtime_get_sync failed case

Even in failed case of pm_runtime_get_sync, the usage_count
is incremented. In order to keep the usage_count with correct
value and runtime power management to behave correctly, call
pm_runtime_put(_sync) in such case.

Signed-off-by Liu Chuansheng <chuansheng.liu@intel.com>
Signed-off-by: Li Fei <fei.li@intel.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/base/regmap/regmap-irq.c