Include <linux/fb.h> and <linux/of.h> to avoid dependency on backlight header to include them. Declares of_machine_is_compatible() and defines FB_BACKLIGHT_MAX.
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] --- drivers/macintosh/via-pmu-backlight.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/macintosh/via-pmu-backlight.c b/drivers/macintosh/via-pmu-backlight.c index 26bd9ed5e664..d91825bb0a5c 100644 --- a/drivers/macintosh/via-pmu-backlight.c +++ b/drivers/macintosh/via-pmu-backlight.c @@ -11,6 +11,8 @@ #include <asm/ptrace.h> #include <linux/adb.h> #include <linux/backlight.h> +#include <linux/fb.h> +#include <linux/of.h> #include <linux/pmu.h> #include <asm/backlight.h> -- 2.51.1
