bq27x00_battery: Add missing kfree(di->bus) in bq27x00_battery_remove()

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>
This commit is contained in:
Axel Lin 2010-10-05 10:05:34 +08:00 committed by Anton Vorontsov
parent fe3f6d097a
commit 9292585c67

View file

@ -418,6 +418,7 @@ static int bq27x00_battery_remove(struct i2c_client *client)
power_supply_unregister(&di->bat); power_supply_unregister(&di->bat);
kfree(di->bus);
kfree(di->bat.name); kfree(di->bat.name);
mutex_lock(&battery_mutex); mutex_lock(&battery_mutex);