drivers/leds/leds-lm3530.c: remove obsolete cleanup for clientdata
authorWolfram Sang <w.sang@pengutronix.de>
Tue, 1 Nov 2011 00:12:03 +0000 (17:12 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 1 Nov 2011 00:30:55 +0000 (17:30 -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: 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>
drivers/leds/leds-lm3530.c

index 3dd7090a9a9b1f59c922b1e31c271d8581e38f0c..d2d25e6df514aefd0c309f95f57a3d5eeb941c04 100644 (file)
@@ -421,7 +421,6 @@ err_class_register:
 err_reg_init:
        regulator_put(drvdata->regulator);
 err_regulator_get:
-       i2c_set_clientdata(client, NULL);
        kfree(drvdata);
 err_out:
        return err;