From: Wolfram Sang Date: Tue, 1 Nov 2011 00:12:03 +0000 (-0700) Subject: drivers/leds/leds-lm3530.c: remove obsolete cleanup for clientdata X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3edc5804b7d27ec48975d7d7acbc0b3e1c62c064;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.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 Signed-off-by: Linus Torvalds --- diff --git a/drivers/leds/leds-lm3530.c b/drivers/leds/leds-lm3530.c index 3dd7090a9a9b..d2d25e6df514 100644 --- a/drivers/leds/leds-lm3530.c +++ b/drivers/leds/leds-lm3530.c @@ -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;