Navid Emamdoost 861254d826 gpio: arizona: put pm_runtime in case of failure
Calling pm_runtime_get_sync increments the counter even in case of
failure, causing incorrect ref count if pm_runtime_put is not called in
error handling paths. Call pm_runtime_put if pm_runtime_get_sync fails.

Signed-off-by: Navid Emamdoost <navid.emamdoost@gmail.com>
Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20200605030052.78235-1-navid.emamdoost@gmail.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2020-06-16 10:38:07 +02:00
..
2020-05-18 10:12:42 +02:00
2020-01-23 16:16:05 +01:00
2019-11-07 09:27:48 +01:00
2018-05-16 14:35:24 +02:00
2020-01-15 11:24:19 +01:00
2020-04-13 13:18:18 +03:00
2019-09-03 16:04:19 +02:00
2020-05-18 10:30:21 +01:00
2020-01-17 08:59:29 +01:00
2019-11-07 09:27:48 +01:00
2019-11-07 09:27:48 +01:00
2019-11-07 09:27:48 +01:00
2019-11-07 09:27:48 +01:00
2020-01-15 13:45:01 +01:00
2019-11-07 09:27:48 +01:00
2019-11-07 09:27:48 +01:00
2019-12-09 10:40:18 +01:00