diff options
author | Wolfram Sang <w.sang@pengutronix.de> | 2011-10-31 20:12:03 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-10-31 20:30:55 -0400 |
commit | 3edc5804b7d27ec48975d7d7acbc0b3e1c62c064 (patch) | |
tree | d372b71c0d51c7a9d05586a0bd11ceed59ff1a98 | |
parent | cba4c2ac080e170732a030afc27664b00f838e03 (diff) |
drivers/leds/leds-lm3530.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: Richard Purdie <rpurdie@rpsys.net>
Acked-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | drivers/leds/leds-lm3530.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/leds/leds-lm3530.c b/drivers/leds/leds-lm3530.c index 3dd7090a9a9..d2d25e6df51 100644 --- a/drivers/leds/leds-lm3530.c +++ b/drivers/leds/leds-lm3530.c | |||
@@ -421,7 +421,6 @@ err_class_register: | |||
421 | err_reg_init: | 421 | err_reg_init: |
422 | regulator_put(drvdata->regulator); | 422 | regulator_put(drvdata->regulator); |
423 | err_regulator_get: | 423 | err_regulator_get: |
424 | i2c_set_clientdata(client, NULL); | ||
425 | kfree(drvdata); | 424 | kfree(drvdata); |
426 | err_out: | 425 | err_out: |
427 | return err; | 426 | return err; |