Commit 3edc5804 authored by Wolfram Sang's avatar Wolfram Sang Committed by Linus Torvalds

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: default avatarWolfram Sang <w.sang@pengutronix.de>
Cc: Richard Purdie <rpurdie@rpsys.net>
Acked-by: default avatarJean Delvare <khali@linux-fr.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent cba4c2ac
...@@ -421,7 +421,6 @@ static int __devinit lm3530_probe(struct i2c_client *client, ...@@ -421,7 +421,6 @@ static int __devinit lm3530_probe(struct i2c_client *client,
err_reg_init: err_reg_init:
regulator_put(drvdata->regulator); regulator_put(drvdata->regulator);
err_regulator_get: err_regulator_get:
i2c_set_clientdata(client, NULL);
kfree(drvdata); kfree(drvdata);
err_out: err_out:
return err; return err;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment