diff options
author | Ley Foon Tan <ley.foon.tan@intel.com> | 2016-12-07 02:44:19 -0500 |
---|---|---|
committer | Ley Foon Tan <ley.foon.tan@intel.com> | 2016-12-13 04:13:17 -0500 |
commit | 744606c76c4a3a73eb34d21f265013426426c4b5 (patch) | |
tree | 131e752e659e1fb717f570c27bfcd9e4ebadfcc9 | |
parent | 863cf8da0f32a4c822cd9f7a2f47cd5204ce1ca0 (diff) |
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>
-rw-r--r-- | arch/nios2/kernel/setup.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/nios2/kernel/setup.c b/arch/nios2/kernel/setup.c index a4ff86d58d5c..a3fa80d1aacc 100644 --- a/arch/nios2/kernel/setup.c +++ b/arch/nios2/kernel/setup.c | |||
@@ -18,6 +18,7 @@ | |||
18 | #include <linux/bootmem.h> | 18 | #include <linux/bootmem.h> |
19 | #include <linux/initrd.h> | 19 | #include <linux/initrd.h> |
20 | #include <linux/of_fdt.h> | 20 | #include <linux/of_fdt.h> |
21 | #include <linux/screen_info.h> | ||
21 | 22 | ||
22 | #include <asm/mmu_context.h> | 23 | #include <asm/mmu_context.h> |
23 | #include <asm/sections.h> | 24 | #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, | |||
36 | 0, 0, 0, 0, 0, 0, | 37 | 0, 0, 0, 0, 0, 0, |
37 | 0}; | 38 | 0}; |
38 | 39 | ||
40 | #ifdef CONFIG_VT | ||
41 | struct screen_info screen_info; | ||
42 | #endif | ||
43 | |||
39 | /* Copy a short hook instruction sequence to the exception address */ | 44 | /* Copy a short hook instruction sequence to the exception address */ |
40 | static inline void copy_exception_handler(unsigned int addr) | 45 | static inline void copy_exception_handler(unsigned int addr) |
41 | { | 46 | { |