Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Wolfram Sang and committed by
Linus Torvalds
2967b0ad 1330b0dc

-2
-2
drivers/video/backlight/adp8870_bl.c
··· 931 931 out1: 932 932 backlight_device_unregister(bl); 933 933 out2: 934 - i2c_set_clientdata(client, NULL); 935 934 kfree(data); 936 935 937 936 return ret; ··· 950 951 &adp8870_bl_attr_group); 951 952 952 953 backlight_device_unregister(data->bl); 953 - i2c_set_clientdata(client, NULL); 954 954 kfree(data); 955 955 956 956 return 0;