diff options
author | Wolfram Sang <w.sang@pengutronix.de> | 2012-03-23 18:02:07 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-03-23 19:58:34 -0400 |
commit | c5bd2a712a0c7299b61b0e02404b1376f794d251 (patch) | |
tree | 66a6e51cca8d3ff07485a0118917b31f03251fe3 /drivers/leds | |
parent | 920c4f4c3651855f888ec708ecc656ba10dd8f1d (diff) |
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: Wolfram Sang <w.sang@pengutronix.de>
Cc: NeilBrown <neilb@suse.de>
Cc: Richard Purdie <rpurdie@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/leds')
-rw-r--r-- | drivers/leds/leds-tca6507.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/leds/leds-tca6507.c b/drivers/leds/leds-tca6507.c index ec06a8101e56..6c1c14f31635 100644 --- a/drivers/leds/leds-tca6507.c +++ b/drivers/leds/leds-tca6507.c | |||
@@ -743,7 +743,6 @@ static int __devexit tca6507_remove(struct i2c_client *client) | |||
743 | } | 743 | } |
744 | tca6507_remove_gpio(tca); | 744 | tca6507_remove_gpio(tca); |
745 | cancel_work_sync(&tca->work); | 745 | cancel_work_sync(&tca->work); |
746 | i2c_set_clientdata(client, NULL); | ||
747 | kfree(tca); | 746 | kfree(tca); |
748 | 747 | ||
749 | return 0; | 748 | return 0; |