summaryrefslogtreecommitdiffstats
path: root/drivers/macintosh
diff options
context:
space:
mode:
authorWolfram Sang <wsa@the-dreams.de>2013-05-21 20:45:40 +0200
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2013-07-01 11:46:56 +1000
commit91f5af2e6524f795c0ee5d2fdc3be40d0e427ae2 (patch)
treeb1ec3931ea8c2c0b17c653eddb1e6551104b5359 /drivers/macintosh
parent7029705a9d0544186c29ae09708b3e5adb512835 (diff)
downloadlinux-91f5af2e6524f795c0ee5d2fdc3be40d0e427ae2.tar.gz
linux-91f5af2e6524f795c0ee5d2fdc3be40d0e427ae2.tar.bz2
linux-91f5af2e6524f795c0ee5d2fdc3be40d0e427ae2.zip
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')
-rw-r--r--drivers/macintosh/windfarm_smu_sat.c1
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)
wf_unregister_sensor(&sens->sens);
}
sat->i2c = NULL;
- i2c_set_clientdata(client, NULL);
kref_put(&sat->ref, wf_sat_release);
return 0;