summaryrefslogtreecommitdiffstats
path: root/arch/nios2
diff options
context:
space:
mode:
authorLey Foon Tan <ley.foon.tan@intel.com>2016-12-07 15:44:19 +0800
committerLey Foon Tan <ley.foon.tan@intel.com>2016-12-13 17:13:17 +0800
commit744606c76c4a3a73eb34d21f265013426426c4b5 (patch)
tree131e752e659e1fb717f570c27bfcd9e4ebadfcc9 /arch/nios2
parent863cf8da0f32a4c822cd9f7a2f47cd5204ce1ca0 (diff)
downloadop-kernel-dev-744606c76c4a3a73eb34d21f265013426426c4b5.zip
op-kernel-dev-744606c76c4a3a73eb34d21f265013426426c4b5.tar.gz
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>
Diffstat (limited to 'arch/nios2')
-rw-r--r--arch/nios2/kernel/setup.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/nios2/kernel/setup.c b/arch/nios2/kernel/setup.c
index a4ff86d..a3fa80d 100644
--- a/arch/nios2/kernel/setup.c
+++ b/arch/nios2/kernel/setup.c
@@ -18,6 +18,7 @@
#include <linux/bootmem.h>
#include <linux/initrd.h>
#include <linux/of_fdt.h>
+#include <linux/screen_info.h>
#include <asm/mmu_context.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};
+#ifdef CONFIG_VT
+struct screen_info screen_info;
+#endif
+
/* Copy a short hook instruction sequence to the exception address */
static inline void copy_exception_handler(unsigned int addr)
{
OpenPOWER on IntegriCloud