]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
drivers/leds/leds-lm3530.c: remove obsolete cleanup for clientdata
authorWolfram Sang <w.sang@pengutronix.de>
Mon, 24 Oct 2011 14:58:51 +0000 (01:58 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 25 Oct 2011 09:08:05 +0000 (20:08 +1100)
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>
drivers/leds/leds-lm3530.c

index a3521daf83a48d871342bd6526b8d8cce0edd44c..15c17330dfcbebc9e318246881d73919a8ea584b 100644 (file)
@@ -422,7 +422,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;