i2c: Remove obsolete cleanup for clientdata

A few new i2c-drivers came into the kernel which clear the clientdata-pointer
on exit. This is obsolete meanwhile, so fix it and hope the word will spread.

Signed-off-by: Wolfram Sang <[email protected]>
Acked-by: Mark Brown <[email protected]>
Signed-off-by: Jean Delvare <[email protected]>
This commit is contained in:
Wolfram Sang 2010-09-30 14:14:22 +02:00 • committed by Jean Delvare
commit 59bfee6e06
4 changed files with 0 additions and 6 deletions

View file

@ -190,7 +190,6 @@ static int __devexit bh1780_remove(struct i2c_client *client)
ddata = i2c_get_clientdata(client);
sysfs_remove_group(&client->dev.kobj, &bh1780_attr_group);
i2c_set_clientdata(client, NULL);
kfree(ddata);
return 0;