macintosh/windfarm: Remove obsolete cleanup for clientdata
authorWolfram Sang <wsa@the-dreams.de>
Tue, 21 May 2013 18:45:40 +0000 (20:45 +0200)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 1 Jul 2013 01:46:56 +0000 (11:46 +1000)
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>
drivers/macintosh/windfarm_smu_sat.c

index d87f5ee..ad6223e 100644 (file)
@@ -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;