diff options
author | Axel Lin <axel.lin@gmail.com> | 2012-01-11 02:44:37 -0500 |
---|---|---|
committer | Anton Vorontsov <anton.vorontsov@linaro.org> | 2012-03-26 12:41:16 -0400 |
commit | 61bb5a780dd4f50aa4dc859c28f1e8820d763b42 (patch) | |
tree | 108a2af8b0b00eeec0c849aa9974fbcf9f568803 /drivers/power | |
parent | e1be8329991b708adbb4e767bcfd6ad1f92bae65 (diff) |
da9052-battery: Fix a memory leak when unload the module
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Anton Vorontsov <anton.vorontsov@linaro.org>
Diffstat (limited to 'drivers/power')
-rw-r--r-- | drivers/power/da9052-battery.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/power/da9052-battery.c b/drivers/power/da9052-battery.c index 07d5b36535d5..daf52a4b17bb 100644 --- a/drivers/power/da9052-battery.c +++ b/drivers/power/da9052-battery.c | |||
@@ -634,6 +634,7 @@ static int __devexit da9052_bat_remove(struct platform_device *pdev) | |||
634 | free_irq(bat->da9052->irq_base + irq, bat); | 634 | free_irq(bat->da9052->irq_base + irq, bat); |
635 | } | 635 | } |
636 | power_supply_unregister(&bat->psy); | 636 | power_supply_unregister(&bat->psy); |
637 | kfree(bat); | ||
637 | 638 | ||
638 | return 0; | 639 | return 0; |
639 | } | 640 | } |