power_supply: 88pm860x: Fix leaked power supply on probe fail
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>
Tue, 27 Jan 2015 15:51:54 +0000 (16:51 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Mar 2015 22:40:49 +0000 (14:40 -0800)
commit4315974144b8b18eeeb958f43a9d50825a5a4254
tree496fd0ca64261fc6255a17b0c5e08ab4badafcce
parent3962a253b21474940c8b858ec0aff0428c2c3e82
power_supply: 88pm860x: Fix leaked power supply on probe fail

commit 24727b45b484e8937dcde53fa8d1aa70ac30ec0c upstream.

Driver forgot to unregister power supply if request_threaded_irq()
failed in probe(). In such case the memory associated with power supply
leaked.

Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Fixes: a830d28b48bf ("power_supply: Enable battery-charger for 88pm860x")
Signed-off-by: Sebastian Reichel <sre@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/power/88pm860x_charger.c