[PATCH 1/2] powermac: backlight: Include <linux/of.h>
Thomas Zimmermann
tzimmermann at suse.de
Tue Oct 28 01:05:40 AEDT 2025
Include <linux/of.h> to avoid dependency on backlight header to include
it. Declares of_find_node_by_name(), of_property_match_string() and
of_node_put().
Signed-off-by: Thomas Zimmermann <tzimmermann at suse.de>
Fixes: 243ce64b2b37 ("backlight: Do not include <linux/fb.h> in header file")
Reported-by: Naresh Kamboju <naresh.kamboju at linaro.org>
Closes: https://lore.kernel.org/linuxppc-dev/CA+G9fYs8fn5URQx2+s2oNxdUgZkSrdLC0P1tNBW_n-6BaBkK2Q@mail.gmail.com/
Cc: Thomas Zimmermann <tzimmermann at suse.de>
Cc: Daniel Thompson (RISCstar) <danielt at kernel.org>
Cc: Simona Vetter <simona.vetter at ffwll.ch>
Cc: Lee Jones <lee at kernel.org>
Cc: Daniel Thompson <danielt at kernel.org>
Cc: Jingoo Han <jingoohan1 at gmail.com>
Cc: dri-devel at lists.freedesktop.org
---
arch/powerpc/platforms/powermac/backlight.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/powerpc/platforms/powermac/backlight.c b/arch/powerpc/platforms/powermac/backlight.c
index 79741370c40c..1796327955c6 100644
--- a/arch/powerpc/platforms/powermac/backlight.c
+++ b/arch/powerpc/platforms/powermac/backlight.c
@@ -11,6 +11,7 @@
#include <linux/kernel.h>
#include <linux/backlight.h>
#include <linux/adb.h>
+#include <linux/of.h>
#include <linux/pmu.h>
#include <linux/atomic.h>
#include <linux/export.h>
--
2.51.1
More information about the Linuxppc-dev
mailing list