]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
video/backlight: remove obsolete cleanup for clientdata
authorWolfram Sang <w.sang@pengutronix.de>
Wed, 5 Oct 2011 00:43:31 +0000 (11:43 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 7 Oct 2011 06:06:54 +0000 (17:06 +1100)
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 <w.sang@pengutronix.de>
Cc: Richard Purdie <rpurdie@rpsys.net>
Cc: Paul Mundt <lethal@linux-sh.org>
Acked-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/video/backlight/adp8870_bl.c

index 98e0304deeaf1625ee58191eaa6786de95291647..6c68a6899e8769c0f131c91860e3467240bcb87c 100644 (file)
@@ -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;