extcon: arizona: Fix runtime PM imbalance on error
authorDinghao Liu <dinghao.liu@zju.edu.cn>
Sat, 23 May 2020 06:17:26 +0000 (14:17 +0800)
committerChanwoo Choi <cw00.choi@samsung.com>
Fri, 29 May 2020 08:36:02 +0000 (17:36 +0900)
commitb2e5575a8d04028d17f6c914eea31036589bc79a
tree1eb26e6d5e31c1fba65e55eac52e3b4a4f81f5fa
parent3d6954dda499f73b0efb659d22b65428345753bf
extcon: arizona: Fix runtime PM imbalance on error

When arizona_request_irq() returns an error code, a
pairing runtime PM usage counter decrement is needed
to keep the counter balanced. For error paths after
this function, things are the same.

Also, remove calls to pm_runtime_disable() when
pm_runtime_enable() has not been executed.

Signed-off-by: Dinghao Liu <dinghao.liu@zju.edu.cn>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
drivers/extcon/extcon-arizona.c