diff options
author | Wolfram Sang <wsa@the-dreams.de> | 2013-05-21 14:45:40 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2013-06-30 21:46:56 -0400 |
commit | 91f5af2e6524f795c0ee5d2fdc3be40d0e427ae2 (patch) | |
tree | b1ec3931ea8c2c0b17c653eddb1e6551104b5359 /drivers/macintosh/windfarm_smu_sat.c | |
parent | 7029705a9d0544186c29ae09708b3e5adb512835 (diff) |
macintosh/windfarm: Remove obsolete cleanup for clientdata
A few new i2c-drivers came into the kernel which clear the clientdata-pointer
on exit or error. This is obsolete meanwhile, the core will do it.
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'drivers/macintosh/windfarm_smu_sat.c')
-rw-r--r-- | drivers/macintosh/windfarm_smu_sat.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/macintosh/windfarm_smu_sat.c b/drivers/macintosh/windfarm_smu_sat.c index d87f5ee04ca9..ad6223e88340 100644 --- a/drivers/macintosh/windfarm_smu_sat.c +++ b/drivers/macintosh/windfarm_smu_sat.c | |||
@@ -343,7 +343,6 @@ static int wf_sat_remove(struct i2c_client *client) | |||
343 | wf_unregister_sensor(&sens->sens); | 343 | wf_unregister_sensor(&sens->sens); |
344 | } | 344 | } |
345 | sat->i2c = NULL; | 345 | sat->i2c = NULL; |
346 | i2c_set_clientdata(client, NULL); | ||
347 | kref_put(&sat->ref, wf_sat_release); | 346 | kref_put(&sat->ref, wf_sat_release); |
348 | 347 | ||
349 | return 0; | 348 | return 0; |