From: Wolfram Sang Date: Mon, 24 Oct 2011 14:58:51 +0000 (+1100) Subject: drivers/leds/leds-lm3530.c: remove obsolete cleanup for clientdata X-Git-Tag: next-20111025~2^2~116 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=0fa116bda586fbb1b6e34b0b7bef553b1e0e79da;p=karo-tx-linux.git 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 Cc: Richard Purdie Acked-by: Jean Delvare Signed-off-by: Andrew Morton --- diff --git a/drivers/leds/leds-lm3530.c b/drivers/leds/leds-lm3530.c index a3521daf83a4..15c17330dfcb 100644 --- a/drivers/leds/leds-lm3530.c +++ b/drivers/leds/leds-lm3530.c @@ -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;