Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 199373
b: refs/heads/master
c: f322d5f
h: refs/heads/master
i:
  199371: 8f81ac0
v: v3
  • Loading branch information
Wolfram Sang authored and Samuel Ortiz committed May 27, 2010
1 parent 810efda commit c03aa98
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d84027bc4d176a0c06e8f62a9f7a002bdd444012
refs/heads/master: f322d5f0097333343bfd92b47258ee997c889263
1 change: 1 addition & 0 deletions trunk/drivers/mfd/88pm860x-i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ static int __devexit pm860x_remove(struct i2c_client *client)
i2c_unregister_device(chip->companion);
i2c_set_clientdata(chip->companion, NULL);
i2c_set_clientdata(chip->client, NULL);
i2c_set_clientdata(client, NULL);
kfree(chip);
return 0;
}
Expand Down
2 changes: 2 additions & 0 deletions trunk/drivers/mfd/ab3100-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -920,6 +920,7 @@ static int __init ab3100_probe(struct i2c_client *client,
i2c_unregister_device(ab3100->testreg_client);
exit_no_testreg_client:
exit_no_detect:
i2c_set_clientdata(client, NULL);
kfree(ab3100);
return err;
}
Expand All @@ -941,6 +942,7 @@ static int __exit ab3100_remove(struct i2c_client *client)
* their notifiers so deactivate IRQ
*/
free_irq(client->irq, ab3100);
i2c_set_clientdata(client, NULL);
kfree(ab3100);
return 0;
}
Expand Down
1 change: 1 addition & 0 deletions trunk/drivers/mfd/da903x.c
Original file line number Diff line number Diff line change
Expand Up @@ -544,6 +544,7 @@ static int __devexit da903x_remove(struct i2c_client *client)
struct da903x_chip *chip = i2c_get_clientdata(client);

da903x_remove_subdevs(chip);
i2c_set_clientdata(client, NULL);
kfree(chip);
return 0;
}
Expand Down
3 changes: 2 additions & 1 deletion trunk/drivers/mfd/menelaus.c
Original file line number Diff line number Diff line change
Expand Up @@ -1228,6 +1228,7 @@ static int menelaus_probe(struct i2c_client *client,
free_irq(client->irq, menelaus);
flush_scheduled_work();
fail1:
i2c_set_clientdata(client, NULL);
kfree(menelaus);
return err;
}
Expand All @@ -1237,8 +1238,8 @@ static int __exit menelaus_remove(struct i2c_client *client)
struct menelaus_chip *menelaus = i2c_get_clientdata(client);

free_irq(client->irq, menelaus);
kfree(menelaus);
i2c_set_clientdata(client, NULL);
kfree(menelaus);
the_menelaus = NULL;
return 0;
}
Expand Down
1 change: 1 addition & 0 deletions trunk/drivers/mfd/pcf50633-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -679,6 +679,7 @@ static int __devexit pcf50633_remove(struct i2c_client *client)
for (i = 0; i < PCF50633_NUM_REGULATORS; i++)
platform_device_unregister(pcf->regulator_pdev[i]);

i2c_set_clientdata(client, NULL);
kfree(pcf);

return 0;
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/mfd/tps65010.c
Original file line number Diff line number Diff line change
Expand Up @@ -530,8 +530,8 @@ static int __exit tps65010_remove(struct i2c_client *client)
cancel_delayed_work(&tps->work);
flush_scheduled_work();
debugfs_remove(tps->file);
kfree(tps);
i2c_set_clientdata(client, NULL);
kfree(tps);
the_tps = NULL;
return 0;
}
Expand Down
2 changes: 2 additions & 0 deletions trunk/drivers/mfd/wm8350-i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ static int wm8350_i2c_probe(struct i2c_client *i2c,
return ret;

err:
i2c_set_clientdata(i2c, NULL);
kfree(wm8350);
return ret;
}
Expand All @@ -91,6 +92,7 @@ static int wm8350_i2c_remove(struct i2c_client *i2c)
struct wm8350 *wm8350 = i2c_get_clientdata(i2c);

wm8350_device_exit(wm8350);
i2c_set_clientdata(i2c, NULL);
kfree(wm8350);

return 0;
Expand Down

0 comments on commit c03aa98

Please sign in to comment.