aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/power/ds2782_battery.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/power/ds2782_battery.c b/drivers/power/ds2782_battery.c
index da14f374cb60..305d463a880c 100644
--- a/drivers/power/ds2782_battery.c
+++ b/drivers/power/ds2782_battery.c
@@ -236,8 +236,6 @@ static int ds2782_battery_remove(struct i2c_client *client)
236 idr_remove(&battery_id, info->id); 236 idr_remove(&battery_id, info->id);
237 mutex_unlock(&battery_lock); 237 mutex_unlock(&battery_lock);
238 238
239 i2c_set_clientdata(client, info);
240
241 kfree(info); 239 kfree(info);
242 return 0; 240 return 0;
243} 241}
@@ -289,7 +287,6 @@ static int ds2782_battery_probe(struct i2c_client *client,
289fail_register: 287fail_register:
290 kfree(info->battery.name); 288 kfree(info->battery.name);
291fail_name: 289fail_name:
292 i2c_set_clientdata(client, info);
293 kfree(info); 290 kfree(info);
294fail_info: 291fail_info:
295 mutex_lock(&battery_lock); 292 mutex_lock(&battery_lock);