summaryrefslogtreecommitdiffstats
path: root/drivers/video
diff options
context:
space:
mode:
authorDave Jones <davej@redhat.com>2007-03-06 10:42:00 +0100
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-03-06 18:30:24 +0100
commitb9860ecf2553fbc4c3bd66f5df7e82a6d5179775 (patch)
tree1a535ff607689d0d47e8154dc203c6009a7cc379 /drivers/video
parent[PATCH] fix build with CONFIG_NO_IDLE_HZ=n (diff)
downloadlinux-b9860ecf2553fbc4c3bd66f5df7e82a6d5179775.tar.xz
linux-b9860ecf2553fbc4c3bd66f5df7e82a6d5179775.zip
[PATCH] nvidiafb backlight: 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 <davej@redhat.com> Signed-off-by: Antonino Daplas <adaplas@gmail.com> Cc: James Simmons <jsimmons@infradead.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/video')
-rw-r--r--drivers/video/nvidia/nv_backlight.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/video/nvidia/nv_backlight.c b/drivers/video/nvidia/nv_backlight.c
index a50b303093a7..43f62d8ee41d 100644
--- a/drivers/video/nvidia/nv_backlight.c
+++ b/drivers/video/nvidia/nv_backlight.c
@@ -12,6 +12,11 @@
#include <linux/backlight.h>
#include <linux/fb.h>
#include <linux/pci.h>
+
+#ifdef CONFIG_PMAC_BACKLIGHT
+#include <asm/backlight.h>
+#endif
+
#include "nv_local.h"
#include "nv_type.h"
#include "nv_proto.h"