projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'for-4.3/drivers' of git://git.kernel.dk/linux-block
[firefly-linux-kernel-4.4.55.git]
/
drivers
/
hid
/
hid-picolcd_backlight.c
diff --git
a/drivers/hid/hid-picolcd_backlight.c
b/drivers/hid/hid-picolcd_backlight.c
index a32c5f86b0b3f667466b921f1ed4581ad1857b1e..808807ad388f9c9c6048cbd30c7969e8cd1937e2 100644
(file)
--- a/
drivers/hid/hid-picolcd_backlight.c
+++ b/
drivers/hid/hid-picolcd_backlight.c
@@
-94,8
+94,7
@@
void picolcd_exit_backlight(struct picolcd_data *data)
struct backlight_device *bdev = data->backlight;
data->backlight = NULL;
- if (bdev)
- backlight_device_unregister(bdev);
+ backlight_device_unregister(bdev);
}
int picolcd_resume_backlight(struct picolcd_data *data)