Commit c5bd2a71 authored by Wolfram Sang's avatar Wolfram Sang Committed by Linus Torvalds

drivers/leds/leds-tca6507.c: 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: default avatarWolfram Sang <w.sang@pengutronix.de>
Cc: NeilBrown <neilb@suse.de>
Cc: Richard Purdie <rpurdie@linux.intel.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 920c4f4c
...@@ -743,7 +743,6 @@ static int __devexit tca6507_remove(struct i2c_client *client) ...@@ -743,7 +743,6 @@ static int __devexit tca6507_remove(struct i2c_client *client)
} }
tca6507_remove_gpio(tca); tca6507_remove_gpio(tca);
cancel_work_sync(&tca->work); cancel_work_sync(&tca->work);
i2c_set_clientdata(client, NULL);
kfree(tca); kfree(tca);
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment