power: supply: ab8500_fg: Do not free non-requested IRQs in probe's error path
authorKrzysztof Kozlowski <krzk@kernel.org>
Fri, 4 Oct 2019 15:07:37 +0000 (17:07 +0200)
committerSebastian Reichel <sre@kernel.org>
Sun, 20 Oct 2019 13:18:08 +0000 (15:18 +0200)
commit24108993278d67174a61f9ead38d4d9d1c001a14
tree5e048ccde3483bc6542e2ed41b7274afeead1b23
parentccc023a58175565b91f6d1996cde4dfe93b04808
power: supply: ab8500_fg: Do not free non-requested IRQs in probe's error path

When requesting interrupt fails, free only interrupts already requested,
not all of them.

Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/ab8500_fg.c