mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
da9052-battery: Fix a memory leak when unload the module
Signed-off-by: Axel Lin <[email protected]> Signed-off-by: Anton Vorontsov <[email protected]>
This commit is contained in:
parent
e1be832999
commit
61bb5a780d
1 changed files with 1 additions and 0 deletions
|
|
@ -634,6 +634,7 @@ static int __devexit da9052_bat_remove(struct platform_device *pdev)
|
|||
free_irq(bat->da9052->irq_base + irq, bat);
|
||||
}
|
||||
power_supply_unregister(&bat->psy);
|
||||
kfree(bat);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue