Skip to content

Commit 9b36c7f

Browse files
tdzmpe
authored andcommitted
macintosh/via-pmu-backlight: Include <linux/fb.h> and <linux/of.h>
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 <tzimmermann@suse.de> Fixes: 243ce64 ("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>
1 parent 8d39832 commit 9b36c7f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

drivers/macintosh/via-pmu-backlight.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
#include <asm/ptrace.h>
1212
#include <linux/adb.h>
1313
#include <linux/backlight.h>
14+
#include <linux/fb.h>
15+
#include <linux/of.h>
1416
#include <linux/pmu.h>
1517
#include <asm/backlight.h>
1618

0 commit comments

Comments
 (0)