Missed this file in the previous check-in, r3248.
[coreboot.git] / src / console / vga_console.c
index bdd56f39235b84d05a08fd5c1c07661b00be7175..a93e2a34f7b7939cd6a382cefa3463ef405d1d7e 100644 (file)
@@ -15,11 +15,7 @@ static char *vidmem;
 
 int vga_line, vga_col;
 
-#if CONFIG_CONSOLE_VGA == 1
-extern int vga_inited; // it will be changed in pci_rom.c
-#else
-int vga_inited = 0;
-#endif
+int vga_inited = 0; // it will be changed in pci_rom.c
 
 static int vga_console_inited = 0;
 
@@ -110,7 +106,7 @@ static void vga_tx_byte(unsigned char byte)
        write_crtc((vga_col + (vga_line *COLS)) & 0x0ff, CRTC_CURSOR_LO);
 }
 
-static struct console_driver vga_console __console ={
+static const struct console_driver vga_console __console ={
        .init    = 0,
        .tx_byte = vga_tx_byte,
        .rx_byte = 0,