kernel-fxtec-pro1x/drivers/hwspinlock
Li Fei c10b90d85a hwspinlock: fix __hwspin_lock_request error path
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_noidle in such case.

In __hwspin_lock_request, module_put is also called before
return in pm_runtime_get_sync failed case.

Cc: stable@vger.kernel.org
Signed-off-by Liu Chuansheng <chuansheng.liu@intel.com>
Signed-off-by: Li Fei <fei.li@intel.com>
[edit commit log]
Signed-off-by: Ohad Ben-Cohen <ohad@wizery.com>
2013-04-05 17:45:11 +03:00
..
hwspinlock_core.c hwspinlock: fix __hwspin_lock_request error path 2013-04-05 17:45:11 +03:00
hwspinlock_internal.h hwspinlock/core: register a bank of hwspinlocks in a single API call 2011-09-21 19:45:34 +03:00
Kconfig hwspinlock/u8500: add hwspinlock driver 2011-09-21 19:57:45 +03:00
Makefile hwspinlock/u8500: add hwspinlock driver 2011-09-21 19:57:45 +03:00
omap_hwspinlock.c hwspinlock: remove use of __devexit 2012-11-28 11:41:36 -08:00
u8500_hsem.c hwspinlock: remove use of __devexit 2012-11-28 11:41:36 -08:00