aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhichuang SUN <[email protected]>2014-05-21 14:13:30 +0800
committerTomi Valkeinen <[email protected]>2014-05-23 13:51:10 +0300
commitfbc6c4a13bbfb420eedfdb26a0a859f9c07e8a7b (patch)
tree0e1c731f0fae993af430359a1421e61e475f9799
parent0c641bff31af7326b51cd39739cfc3a2c060f456 (diff)
drivers/video/fbdev/fb-puv3.c: Add header files for function unifb_mmap
Function unifb_mmap calls functions which are defined in linux/mm.h and asm/pgtable.h The related error (for unicore32 with unicore32_defconfig): CC drivers/video/fbdev/fb-puv3.o drivers/video/fbdev/fb-puv3.c: In function 'unifb_mmap': drivers/video/fbdev/fb-puv3.c:646: error: implicit declaration of function 'vm_iomap_memory' drivers/video/fbdev/fb-puv3.c:646: error: implicit declaration of function 'pgprot_noncached' Signed-off-by: Zhichuang Sun <[email protected]> Cc: Jean-Christophe Plagniol-Villard <[email protected]> Cc: Tomi Valkeinen <[email protected]> Cc: Jingoo Han <[email protected]> Cc: Daniel Vetter <[email protected]> Cc: Joe Perches <[email protected]> Cc: Laurent Pinchart <[email protected]> Cc: [email protected] Acked-by: Xuetao Guan <[email protected]> Signed-off-by: Tomi Valkeinen <[email protected]>
-rw-r--r--drivers/video/fbdev/fb-puv3.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/video/fbdev/fb-puv3.c b/drivers/video/fbdev/fb-puv3.c
index 6db9ebd042a3..88fa2e70a0bb 100644
--- a/drivers/video/fbdev/fb-puv3.c
+++ b/drivers/video/fbdev/fb-puv3.c
@@ -18,8 +18,10 @@
#include <linux/fb.h>
#include <linux/init.h>
#include <linux/console.h>
+#include <linux/mm.h>
#include <asm/sizes.h>
+#include <asm/pgtable.h>
#include <mach/hardware.h>
/* Platform_data reserved for unifb registers. */