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)
committerSebastian Reichel <sre@kernel.org>
Wed, 28 Jan 2015 14:08:10 +0000 (15:08 +0100)
commit24727b45b484e8937dcde53fa8d1aa70ac30ec0c
tree668007fc24195e10ec6dc01cb3bfe3fc40662815
parent7bae8f04818cb388ca8652a55daa4132b469295e
power_supply: 88pm860x: Fix leaked power supply on probe fail

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")
Cc: <stable@vger.kernel.org>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
drivers/power/88pm860x_charger.c