mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-24 12:44:11 +08:00
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>
This commit is contained in:
parent
7029705a9d
commit
91f5af2e65
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user