linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] arm64: kernel: need extern variable 'screen_info' for related driver using.
@ 2013-05-20  5:42 Chen Gang
  2013-05-20  9:10 ` Will Deacon
  0 siblings, 1 reply; 11+ messages in thread
From: Chen Gang @ 2013-05-20  5:42 UTC (permalink / raw)
  To: linux-arm-kernel


Add the extern variable 'screen_info' according to arm32 has done.

The related error:
  drivers/video/console/vgacon.c:1305: undefined reference to `screen_info'


Signed-off-by: Chen Gang <gang.chen@asianux.com>
---
 arch/arm64/kernel/setup.c |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/arch/arm64/kernel/setup.c b/arch/arm64/kernel/setup.c
index add6ea6..1055992 100644
--- a/arch/arm64/kernel/setup.c
+++ b/arch/arm64/kernel/setup.c
@@ -374,3 +374,14 @@ const struct seq_operations cpuinfo_op = {
 	.stop	= c_stop,
 	.show	= c_show
 };
+
+#if defined(CONFIG_VGA_CONSOLE) || defined(CONFIG_DUMMY_CONSOLE)
+struct screen_info screen_info = {
+	.orig_video_lines	= 30,
+	.orig_video_cols	= 80,
+	.orig_video_mode	= 0,
+	.orig_video_ega_bx	= 0,
+	.orig_video_isVGA	= 1,
+	.orig_video_points	= 8
+};
+#endif
-- 
1.7.7.6

^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2013-05-22  0:50 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-20  5:42 [PATCH] arm64: kernel: need extern variable 'screen_info' for related driver using Chen Gang
2013-05-20  9:10 ` Will Deacon
2013-05-21  3:15   ` Chen Gang
2013-05-21  6:57     ` Geert Uytterhoeven
2013-05-21  7:51       ` Chen Gang
2013-05-21  9:03         ` Will Deacon
2013-05-21 10:13           ` Chen Gang
2013-05-21 13:15             ` Catalin Marinas
2013-05-22  0:50               ` Chen Gang
2013-05-21 11:07         ` Geert Uytterhoeven
2013-05-21 11:40           ` Chen Gang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).