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 <[email protected]> Fixes: 243ce64b2b37 ("backlight: Do not include <linux/fb.h> in header file") Reported-by: Naresh Kamboju <[email protected]> Closes: https://lore.kernel.org/linuxppc-dev/ca+g9fys8fn5urqx2+s2onxdugzksrdlc0p1tnbw_n-6babk...@mail.gmail.com/ Cc: Thomas Zimmermann <[email protected]> Cc: Daniel Thompson (RISCstar) <[email protected]> Cc: Simona Vetter <[email protected]> Cc: Lee Jones <[email protected]> Cc: Daniel Thompson <[email protected]> Cc: Jingoo Han <[email protected]> Cc: [email protected] --- 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
