aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-02-06 19:43:02 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-02-06 19:43:02 -0500
commit3213f631da786bee317363d251a0cc54b74bc827 (patch)
tree86ab06d08c6309916ad5ae82c6f0f62d63bd2388
parent6e9430ac57e8c1f41ab24ef7fbb3d452c7eb7246 (diff)
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>
-rw-r--r--drivers/video/backlight/backlight.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/backlight/backlight.c b/drivers/video/backlight/backlight.c
index 345f6660d4b3..c74e7aa46731 100644
--- a/drivers/video/backlight/backlight.c
+++ b/drivers/video/backlight/backlight.c
@@ -371,7 +371,7 @@ void backlight_device_unregister(struct backlight_device *bd)
371EXPORT_SYMBOL(backlight_device_unregister); 371EXPORT_SYMBOL(backlight_device_unregister);
372 372
373#ifdef CONFIG_OF 373#ifdef CONFIG_OF
374static int of_parent_match(struct device *dev, void *data) 374static int of_parent_match(struct device *dev, const void *data)
375{ 375{
376 return dev->parent && dev->parent->of_node == data; 376 return dev->parent && dev->parent->of_node == data;
377} 377}