From: Wolfram Sang Date: Fri, 23 Mar 2012 22:02:07 +0000 (-0700) Subject: drivers/leds/leds-tca6507.c: remove obsolete cleanup for clientdata X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c5bd2a712a0c7299b61b0e02404b1376f794d251;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git drivers/leds/leds-tca6507.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: NeilBrown Cc: Richard Purdie Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/leds/leds-tca6507.c b/drivers/leds/leds-tca6507.c index ec06a8101e56..6c1c14f31635 100644 --- a/drivers/leds/leds-tca6507.c +++ b/drivers/leds/leds-tca6507.c @@ -743,7 +743,6 @@ static int __devexit tca6507_remove(struct i2c_client *client) } tca6507_remove_gpio(tca); cancel_work_sync(&tca->work); - i2c_set_clientdata(client, NULL); kfree(tca); return 0;