drivers/leds/leds-tca6507.c: remove obsolete cleanup for clientdata
authorWolfram Sang <w.sang@pengutronix.de>
Fri, 23 Mar 2012 22:02:07 +0000 (15:02 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 23 Mar 2012 23:58:34 +0000 (16:58 -0700)
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>
drivers/leds/leds-tca6507.c

index ec06a8101e5662199beddff6d6f88076aada3638..6c1c14f3163505530cf253d1884e2eb7d0bc8099 100644 (file)
@@ -743,7 +743,6 @@ static int __devexit tca6507_remove(struct i2c_client *client)
        }
        tca6507_remove_gpio(tca);
        cancel_work_sync(&tca->work);
-       i2c_set_clientdata(client, NULL);
        kfree(tca);
 
        return 0;