patch-2.1.79 linux/drivers/sbus/char/suncons.c

Next file: linux/drivers/sbus/char/sunfb.c
Previous file: linux/drivers/sbus/char/su.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.78/linux/drivers/sbus/char/suncons.c linux/drivers/sbus/char/suncons.c
@@ -1,4 +1,4 @@
-/* $Id: suncons.c,v 1.73 1997/08/25 07:50:33 jj Exp $
+/* $Id: suncons.c,v 1.77 1997/12/19 07:32:59 ecd Exp $
  * suncons.c: Sparc platform console generic layer.
  *
  * Copyright (C) 1997 David S. Miller (davem@caip.rutgers.edu)
@@ -100,13 +100,11 @@
 static unsigned long nop_con_type_init(unsigned long mem_start,
 				       const char **display_desc)
 {
-	prom_printf("YIEEE: nop_con_type_init called!\n");
 	return mem_start;
 }
 
 static void nop_con_type_init_finish(void)
 {
-	prom_printf("YIEEE: nop_con_type_init_finish called!\n");
 }
 
 static void nop_vesa_blank(void)
@@ -323,12 +321,17 @@
 extern void pci_console_inithook(void);
 #endif
 
+__initfunc(int con_is_present(void))
+{
+	return serial_console ? 0 : 1;
+}
+
 __initfunc(unsigned long sun_console_init(unsigned long memory_start))
 {
 	int i;
 
 	/* Nothing to do in this case. */
-	if(serial_console)
+	if (!con_is_present())
 		return memory_start;
 
 	fbinfo = (fbinfo_t *)memory_start;
@@ -358,7 +361,7 @@
 __initfunc(unsigned long pci_console_init(unsigned long memory_start))
 {
 	/* Nothing to do in this case. */
-	if(serial_console)
+	if (!con_is_present())
 		return memory_start;
 
 	if(pci_console_probe()) {
@@ -369,8 +372,6 @@
 	memory_start = finish_console_init(memory_start);
 
 	con_type_init_finish();
-	register_console(&vt_console_driver);
-
 	return memory_start;
 }
 #endif

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