Commit 59bfee6e0682635c269fb271422e2595fa441c21
Committed by
Jean Delvare
1 parent
4193d91635
Exists in
master
and in
7 other branches
i2c: Remove obsolete cleanup for clientdata
A few new i2c-drivers came into the kernel which clear the clientdata-pointer on exit. This is obsolete meanwhile, so fix it and hope the word will spread. Signed-off-by: Wolfram Sang <w.sang@pengutronix.de> Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Jean Delvare <khali@linux-fr.org>
Showing 4 changed files with 0 additions and 6 deletions Side-by-side Diff
drivers/misc/bh1780gli.c
drivers/regulator/ad5398.c
drivers/regulator/isl6271a-regulator.c
drivers/rtc/rtc-ds3232.c
... | ... | @@ -268,7 +268,6 @@ |
268 | 268 | free_irq(client->irq, client); |
269 | 269 | |
270 | 270 | out_free: |
271 | - i2c_set_clientdata(client, NULL); | |
272 | 271 | kfree(ds3232); |
273 | 272 | return ret; |
274 | 273 | } |
... | ... | @@ -287,7 +286,6 @@ |
287 | 286 | } |
288 | 287 | |
289 | 288 | rtc_device_unregister(ds3232->rtc); |
290 | - i2c_set_clientdata(client, NULL); | |
291 | 289 | kfree(ds3232); |
292 | 290 | return 0; |
293 | 291 | } |