Skip to content

Commit

Permalink
wm831x_power: Add missing kfree(wm831x_power) in wm831x_power_remove()
Browse files Browse the repository at this point in the history
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>
  • Loading branch information
Axel Lin authored and Anton Vorontsov committed Sep 28, 2010
1 parent 5f29895 commit 9c99f08
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/power/wm831x_power.c
Original file line number Diff line number Diff line change
Expand Up @@ -611,6 +611,7 @@ static __devexit int wm831x_power_remove(struct platform_device *pdev)
power_supply_unregister(&wm831x_power->battery);
power_supply_unregister(&wm831x_power->wall);
power_supply_unregister(&wm831x_power->usb);
kfree(wm831x_power);
return 0;
}

Expand Down

0 comments on commit 9c99f08

Please sign in to comment.