mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
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 <[email protected]> Cc: Richard Purdie <[email protected]> Cc: Paul Mundt <[email protected]> Acked-by: Jean Delvare <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
1330b0dcf8
commit
2967b0ad33
1 changed files with 0 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue