pwm: img: Call pm_runtime_put() in pm_runtime_get_sync() failed case
authorNavid Emamdoost <navid.emamdoost@gmail.com>
Mon, 1 Jun 2020 07:11:16 +0000 (02:11 -0500)
committerThierry Reding <thierry.reding@gmail.com>
Tue, 2 Jun 2020 13:50:51 +0000 (15:50 +0200)
commitca162ce98110b98e7d97b7157328d34dcfdd40a9
tree2ec541de3f3861ee5a350f164e2881e5981ad054
parent1d7796bdb63a63c9cc8087ffc6daeb36a7c005e1
pwm: img: 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 call
appropriate pm_runtime_put().

Signed-off-by: Navid Emamdoost <navid.emamdoost@gmail.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/pwm-img.c