Browse Source

nios2: add screen_info

Fix build error when enable VGA console.

drivers/video/console/vgacon.c:586: undefined reference to `screen_info'

Signed-off-by: Ley Foon Tan <ley.foon.tan@intel.com>
Ley Foon Tan 8 years ago
parent
commit
744606c76c
1 changed files with 5 additions and 0 deletions
  1. 5 0
      arch/nios2/kernel/setup.c

+ 5 - 0
arch/nios2/kernel/setup.c

@@ -18,6 +18,7 @@
 #include <linux/bootmem.h>
 #include <linux/bootmem.h>
 #include <linux/initrd.h>
 #include <linux/initrd.h>
 #include <linux/of_fdt.h>
 #include <linux/of_fdt.h>
+#include <linux/screen_info.h>
 
 
 #include <asm/mmu_context.h>
 #include <asm/mmu_context.h>
 #include <asm/sections.h>
 #include <asm/sections.h>
@@ -36,6 +37,10 @@ static struct pt_regs fake_regs = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
 					0, 0, 0, 0, 0, 0,
 					0, 0, 0, 0, 0, 0,
 					0};
 					0};
 
 
+#ifdef CONFIG_VT
+struct screen_info screen_info;
+#endif
+
 /* Copy a short hook instruction sequence to the exception address */
 /* Copy a short hook instruction sequence to the exception address */
 static inline void copy_exception_handler(unsigned int addr)
 static inline void copy_exception_handler(unsigned int addr)
 {
 {