diff options
Diffstat (limited to 'drivers/video/backlight')
-rw-r--r-- | drivers/video/backlight/adp8870_bl.c | 2 |
1 files changed, 0 insertions, 2 deletions
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: | |||
931 | out1: | 931 | out1: |
932 | backlight_device_unregister(bl); | 932 | backlight_device_unregister(bl); |
933 | out2: | 933 | out2: |
934 | i2c_set_clientdata(client, NULL); | ||
935 | kfree(data); | 934 | kfree(data); |
936 | 935 | ||
937 | return ret; | 936 | return ret; |
@@ -951,7 +950,6 @@ static int __devexit adp8870_remove(struct i2c_client *client) | |||
951 | &adp8870_bl_attr_group); | 950 | &adp8870_bl_attr_group); |
952 | 951 | ||
953 | backlight_device_unregister(data->bl); | 952 | backlight_device_unregister(data->bl); |
954 | i2c_set_clientdata(client, NULL); | ||
955 | kfree(data); | 953 | kfree(data); |
956 | 954 | ||
957 | return 0; | 955 | return 0; |