]> Gentwo Git Trees - linux/.git/commitdiff
powerpc/powermac: backlight: Include <linux/of.h>
authorThomas Zimmermann <tzimmermann@suse.de>
Mon, 27 Oct 2025 14:05:40 +0000 (15:05 +0100)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 2 Dec 2025 10:54:59 +0000 (21:54 +1100)
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@suse.de>
Fixes: 243ce64b2b37 ("backlight: Do not include <linux/fb.h> in header file")
Reported-by: Naresh Kamboju <naresh.kamboju@linaro.org>
Reviewed-by: Daniel Thompson (RISCstar) <danielt@kernel.org>
Closes: https://lore.kernel.org/linuxppc-dev/CA+G9fYs8fn5URQx2+s2oNxdUgZkSrdLC0P1tNBW_n-6BaBkK2Q@mail.gmail.com/
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/powermac/backlight.c

index 79741370c40c642e8926ab700cf40c7a900c876e..1796327955c6da45dce66773a55780c3f58bbd16 100644 (file)
@@ -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>