Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Wolfram Sang and committed by
Benjamin Herrenschmidt
91f5af2e 7029705a

-1
-1
drivers/macintosh/windfarm_smu_sat.c
··· 343 343 wf_unregister_sensor(&sens->sens); 344 344 } 345 345 sat->i2c = NULL; 346 - i2c_set_clientdata(client, NULL); 347 346 kref_put(&sat->ref, wf_sat_release); 348 347 349 348 return 0;