[PATCH] remove compile warning from serial console initcall

From: Martin J. Bligh (mbligh@aracnet.com)
Date: Sat Mar 08 2003 - 18:06:55 EST


This tiny patch removes the new compiler warning from my build -
the new console_initcall mechanism seems to require int from
console_init ... I made serial8250_console_init look like con_init

diff -urpN -X /home/fletch/.diff.exclude 900-mjb2/drivers/serial/8250.c 999-serial_fix/drivers/serial/8250.c
--- 900-mjb2/drivers/serial/8250.c Sat Mar 8 12:54:04 2003
+++ 999-serial_fix/drivers/serial/8250.c Sat Mar 8 14:48:20 2003
@@ -1982,10 +1982,11 @@ static struct console serial8250_console
         .index = -1,
 };
 
-static void __init serial8250_console_init(void)
+static int __init serial8250_console_init(void)
 {
         serial8250_isa_init_ports();
         register_console(&serial8250_console);
+ return 0;
 }
 console_initcall(serial8250_console_init);
 

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Mar 15 2003 - 22:00:16 EST