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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Jun 2020 15:50:18 +0000 (17:50 +0200)
commit7f16ba366a66b532fa33aa218c5c7db271f0e530
treeefa889e0461170a3bf91ac8f6878fed9572ec440
parent9b163c91620ca61a08bb02bfca22cf264e44f74f
pwm: img: Call pm_runtime_put() in pm_runtime_get_sync() failed case

[ Upstream commit ca162ce98110b98e7d97b7157328d34dcfdd40a9 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/pwm/pwm-img.c