gpio: arizona: disable pm_runtime in case of failure
authorZheng Liang <zhengliang6@huawei.com>
Tue, 24 Nov 2020 03:06:06 +0000 (11:06 +0800)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Wed, 2 Dec 2020 09:40:54 +0000 (10:40 +0100)
commit0ac22098de6f9fd460ac1b1cbf6dbd324312161c
tree0a59ef076b60422337773f171f0d34276ad3fdc0
parentb65054597872ce3aefbc6a666385eabdf9e288da
gpio: arizona: disable pm_runtime in case of failure

pm_runtime_enable will increase power disable depth. Thus a
pairing decrement is needed on the error handling path to keep
it balanced.

Fixes:27a49ed17e224(gpio: arizona: Add support for GPIOs that)
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Zheng Liang <zhengliang6@huawei.com>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
drivers/gpio/gpio-arizona.c