powerpc: Fix backlight include fallout
Subsystems (2)
cover powerpc: Fix backlight include fallout
Fix the fallout from a recent cleanup of the backlight header.
Thomas Zimmermann (2):
powermac: backlight: Include <linux/of.h> macintosh/via-pmu-backlight: Include <linux/fb.h> and <linux/of.h>
arch/powerpc/platforms/powermac/backlight.c | 1 + drivers/macintosh/via-pmu-backlight.c | 2 ++ 2 files changed, 3 insertions(+)
Signature · 1 line
2.51.1
PATCH 1/2 powermac: backlight: Include <linux/of.h>
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().
--- arch/powerpc/platforms/powermac/backlight.c | 1 + 1 file changed, 1 insertion(+)
arch/powerpc/platforms/powermac/backlight.c +1 -0
@@ -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>
Signature · 1 line
2.51.1
PATCH 2/2 macintosh/via-pmu-backlight: Include <linux/fb.h> and <linux/of.h>
In reply to Thomas ZimmermannInclude <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.
--- drivers/macintosh/via-pmu-backlight.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/macintosh/via-pmu-backlight.c +2 -0
@@ -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>
Signature · 1 line
2.51.1
Quoted 9 lines · Thomas Zimmermann
Fix the fallout from a recent cleanup of the backlight header.
Thomas Zimmermann (2):
powermac: backlight: Include <linux/of.h> macintosh/via-pmu-backlight: Include <linux/fb.h> and <linux/of.h>arch/powerpc/platforms/powermac/backlight.c | 1 + drivers/macintosh/via-pmu-backlight.c | 2 ++ 2 files changed, 3 insertions(+)
I noticed that both these directory trees are orphaned.
Anyone have any thoughts about what tree these should be delivered via?
Either way, FWIW:
Daniel.