aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/console/vgacon.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video/console/vgacon.c')
-rw-r--r--drivers/video/console/vgacon.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/drivers/video/console/vgacon.c b/drivers/video/console/vgacon.c
index 54e32c513610..915fd74da7a2 100644
--- a/drivers/video/console/vgacon.c
+++ b/drivers/video/console/vgacon.c
@@ -47,7 +47,6 @@
47#include <linux/ioport.h> 47#include <linux/ioport.h>
48#include <linux/init.h> 48#include <linux/init.h>
49#include <linux/screen_info.h> 49#include <linux/screen_info.h>
50#include <linux/smp_lock.h>
51#include <video/vga.h> 50#include <video/vga.h>
52#include <asm/io.h> 51#include <asm/io.h>
53 52
@@ -203,11 +202,7 @@ static void vgacon_scrollback_init(int pitch)
203 } 202 }
204} 203}
205 204
206/* 205static void vgacon_scrollback_startup(void)
207 * Called only duing init so call of alloc_bootmen is ok.
208 * Marked __init_refok to silence modpost.
209 */
210static void __init_refok vgacon_scrollback_startup(void)
211{ 206{
212 vgacon_scrollback = kcalloc(CONFIG_VGACON_SOFT_SCROLLBACK_SIZE, 1024, GFP_NOWAIT); 207 vgacon_scrollback = kcalloc(CONFIG_VGACON_SOFT_SCROLLBACK_SIZE, 1024, GFP_NOWAIT);
213 vgacon_scrollback_init(vga_video_num_columns * 2); 208 vgacon_scrollback_init(vga_video_num_columns * 2);
@@ -376,7 +371,8 @@ static const char *vgacon_startup(void)
376 u16 saved1, saved2; 371 u16 saved1, saved2;
377 volatile u16 *p; 372 volatile u16 *p;
378 373
379 if (screen_info.orig_video_isVGA == VIDEO_TYPE_VLFB) { 374 if (screen_info.orig_video_isVGA == VIDEO_TYPE_VLFB ||
375 screen_info.orig_video_isVGA == VIDEO_TYPE_EFI) {
380 no_vga: 376 no_vga:
381#ifdef CONFIG_DUMMY_CONSOLE 377#ifdef CONFIG_DUMMY_CONSOLE
382 conswitchp = &dummy_con; 378 conswitchp = &dummy_con;