patch-2.1.31 linux/drivers/char/tga.c

Next file: linux/drivers/char/tpqic02.c
Previous file: linux/drivers/char/softdog.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.30/linux/drivers/char/tga.c linux/drivers/char/tga.c
@@ -37,8 +37,7 @@
 #include "selection.h"
 #include "console_struct.h"
 
-extern void register_console(void (*proc)(const char *));
-extern void console_print(const char *);
+extern struct console vt_console_driver;
 
 /* TGA hardware description (minimal) */
 /*
@@ -485,7 +484,9 @@
 	/*
 	 * FINALLY, we can register TGA as console (whew!)
 	 */
-	register_console(console_print);
+#ifdef CONFIG_VT_CONSOLE
+	register_console(&vt_console_driver);
+#endif
 }
 
 unsigned char PLLbits[7] = { 0x80, 0x04, 0x00, 0x24, 0x44, 0x80, 0xb8 };

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov