]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mmc: core: call pm_runtime_put_noidle in pm_runtime_get_sync failed case
authorLi Fei <fei.li@intel.com>
Mon, 8 Apr 2013 01:36:39 +0000 (09:36 +0800)
committerChris Ball <cjb@laptop.org>
Fri, 12 Apr 2013 18:15:04 +0000 (14:15 -0400)
commit3bffb800b91bb128b61d83deb01ce63c455d108f
treec43e1e0a36a6227fcf2be401aab951eec390e31e
parentabd4190f0c820b7f118450b52bb95c0be3a441bd
mmc: core: call pm_runtime_put_noidle 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_noidle in such case.

Signed-off-by: Liu Chuansheng <chuansheng.liu@intel.com>
Signed-off-by: Li Fei <fei.li@intel.com>
Acked-by: Ohad Ben-Cohen <ohad@wizery.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/core/sdio.c
drivers/mmc/core/sdio_bus.c