Re: [PATCH] pwm: img: call pm_runtime_put in pm_runtime_get_sync failed case

2020-06-01 Thread Markus Elfring
> Even in failed case of pm_runtime_get_sync, the usage_count > is incremented. In order to keep the usage_count with correct > value call appropriate put. * I suggest to adjust the word “usage_count” in this change description. * Would you like to add the tag “Fixes” to the commit message? Rega

[PATCH] pwm: img: call pm_runtime_put in pm_runtime_get_sync failed case

2020-06-01 Thread Navid Emamdoost
Even in failed case of pm_runtime_get_sync, the usage_count is incremented. In order to keep the usage_count with correct value call appropriate put. Signed-off-by: Navid Emamdoost --- drivers/pwm/pwm-img.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/pwm/p