From: Wolfram Sang Date: Wed, 5 Oct 2011 00:43:31 +0000 (+1100) Subject: video/backlight: remove obsolete cleanup for clientdata X-Git-Tag: next-20111006~1^2~97 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=7dea38549e671f7d7ab5813bccdee44578568f16;p=karo-tx-linux.git video/backlight: 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 Cc: Paul Mundt Acked-by: Jean Delvare Signed-off-by: Andrew Morton --- diff --git a/drivers/video/backlight/adp8870_bl.c b/drivers/video/backlight/adp8870_bl.c index 98e0304deeaf..6c68a6899e87 100644 --- a/drivers/video/backlight/adp8870_bl.c +++ b/drivers/video/backlight/adp8870_bl.c @@ -931,7 +931,6 @@ out: out1: backlight_device_unregister(bl); out2: - i2c_set_clientdata(client, NULL); kfree(data); return ret; @@ -951,7 +950,6 @@ static int __devexit adp8870_remove(struct i2c_client *client) &adp8870_bl_attr_group); backlight_device_unregister(data->bl); - i2c_set_clientdata(client, NULL); kfree(data); return 0;