]> git.neil.brown.name Git - history.git/commitdiff
[SERIAL] Fix uart_type compilation error when CONFIG_PROC_FS=n
authorRussell King <rmk@flint.arm.linux.org.uk>
Fri, 11 Oct 2002 13:57:22 +0000 (14:57 +0100)
committerRussell King <rmk@flint.arm.linux.org.uk>
Fri, 11 Oct 2002 13:57:22 +0000 (14:57 +0100)
drivers/serial/core.c

index a5ed63f1b3bddcc7ee7ae1ae112769c13baa2352..34c926c533f8b0daac0307a1ae58132c45403e3b 100644 (file)
@@ -1604,8 +1604,6 @@ static int uart_open(struct tty_struct *tty, struct file *filp)
        return retval;
 }
 
-#ifdef CONFIG_PROC_FS
-
 static const char *uart_type(struct uart_port *port)
 {
        const char *str = NULL;
@@ -1619,6 +1617,8 @@ static const char *uart_type(struct uart_port *port)
        return str;
 }
 
+#ifdef CONFIG_PROC_FS
+
 static int uart_line_info(char *buf, struct uart_driver *drv, int i)
 {
        struct uart_state *state = drv->state + i;