summaryrefslogtreecommitdiffstats
path: root/drivers/video/nvidia/nv_backlight.c
diff options
context:
space:
mode:
authorDave Jones <davej@redhat.com>2007-03-06 01:42:00 -0800
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-03-06 09:30:24 -0800
commitb9860ecf2553fbc4c3bd66f5df7e82a6d5179775 (patch)
tree1a535ff607689d0d47e8154dc203c6009a7cc379 /drivers/video/nvidia/nv_backlight.c
parent6261d720da40c51af96881ed210fe80f10138a7b (diff)
downloadop-kernel-dev-b9860ecf2553fbc4c3bd66f5df7e82a6d5179775.zip
op-kernel-dev-b9860ecf2553fbc4c3bd66f5df7e82a6d5179775.tar.gz
[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/nvidia/nv_backlight.c')
-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 a50b303..43f62d8 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"
OpenPOWER on IntegriCloud