fix implicit declaration in nv_backlight.
drivers/video/nvidia/nv_backlight.c: In function 'nvidia_bl_init':drivers/video/nvidia/nv_backlight.c:103: error: implicit declaration of function 'pmac_has_backlight_type'
Signed-off-by Dave Jones <[email protected]>
drivers/video/nvidia/nv_backlight.c renamed from drivers/video/nvidia/nv_backlight.c~ +3 -0
@@ -12,6 +12,9 @@#include <linux/backlight.h> #include <linux/fb.h> #include <linux/pci.h> +#ifdef __powerpc__ +#include <asm/backlight.h> +#endif #include "nv_local.h" #include "nv_type.h" #include "nv_proto.h"
Signature · 1 line
http://www.codemonkey.org.uk
Quoted 1 line · Dave Jones
+#ifdef
__powerpc__
Is __powerpc__ defined when cross compiling? I'd rather use CONFIG_PMAC_BACKLIGHT instead of it.
Greets,
Michael
Quoted 5 lines · Michael Hanselmann
Quoted 1 line · Dave Jones
+#ifdef
__powerpc__Is
__powerpc__defined when cross compiling? I'd rather useCONFIG_PMAC_BACKLIGHTinstead of it.
Sounds ok to me.
Dave
Signature · 1 line
http://www.codemonkey.org.uk
Quoted 7 lines · Dave Jones
Quoted 1 line
+#ifdef
__powerpc__Is
__powerpc__defined when cross compiling? I'd rather useCONFIG_PMAC_BACKLIGHTinstead of it.
Agree with this too.
Tony