Skip to contentSkip to conversation

nvidiafb backlight: Fix implicit declaration in nv_backlight

PATCH New Antonino A. Daplas 1 participant 1 message Mar 5, 2007 Framebuffer layer

lore
Share & tools
lore
#0 lore raw

PATCH 2/4 nvidiafb backlight: Fix implicit declaration in nv_backlight

From: Dave Jones <[email protected]>

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'

---

 drivers/video/nvidia/nv_backlight.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
drivers/video/nvidia/nv_backlight.c +5 -0
index a50b303..43f62d8 100644
@@ -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"

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV