Commit 3213f631da786bee317363d251a0cc54b74bc827
1 parent
6e9430ac57
Exists in
smarc-l5.0.0_1.0.0-ga
and in
5 other branches
backlight: fix class_find_device() arguments
Michał's previous patch missed this backlight check to fix up the class_find_device() arguments. Reported-by: kbuild test robot <fengguang.wu@intel.com> Cc: Michał Mirosław <mirq-linux@rere.qmqm.pl> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
drivers/video/backlight/backlight.c
... | ... | @@ -371,7 +371,7 @@ |
371 | 371 | EXPORT_SYMBOL(backlight_device_unregister); |
372 | 372 | |
373 | 373 | #ifdef CONFIG_OF |
374 | -static int of_parent_match(struct device *dev, void *data) | |
374 | +static int of_parent_match(struct device *dev, const void *data) | |
375 | 375 | { |
376 | 376 | return dev->parent && dev->parent->of_node == data; |
377 | 377 | } |