[PATCH] Bodge up serial support in 2.5.40

From: jbradford@dial.pipex.com
Date: Wed Oct 02 2002 - 11:36:32 EST


Standard 8250/16550 UART support is broken in 2.5.40, and I needed it, so following a bit of advice from Russell King, I've prepared this patch.

I thought I'd post it, just incase anybody else out there actually uses serial ports, (seems they don't). Before you apply it, bear in mind that the last C I did was a hello world program :-), (only half kidding).

This is a bodge up patch only, NOT an official solution.

John.

--- linux-2.5.40-orig/drivers/serial/core.c 2002-10-02 15:07:21.000000000 +0100
+++ linux-2.5.40/drivers/serial/core.c 2002-10-02 15:09:38.000000000 +0100
@@ -1604,8 +1604,6 @@
         return retval;
 }
 
-#ifdef CONFIG_PROC_FS
-
 static const char *uart_type(struct uart_port *port)
 {
         const char *str = NULL;
@@ -1708,7 +1706,6 @@
         *start = page + (off - begin);
         return (count < begin + len - off) ? count : (begin + len - off);
 }
-#endif
 
 #ifdef CONFIG_SERIAL_CORE_CONSOLE
 /*
-
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 : Mon Oct 07 2002 - 22:00:34 EST