]> err.no Git - linux-2.6/commitdiff
[PATCH] Serial: remove unnecessary register_serial/unregister_serial
authorRussell King <rmk+lkml@arm.linux.org.uk>
Sat, 25 Jun 2005 21:54:30 +0000 (14:54 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sat, 25 Jun 2005 23:24:25 +0000 (16:24 -0700)
A couple of drivers declare register_serial/unregister_serial prototypes
but don't use them.  FRV contains a commented out call to register_serial.
Since these are deprecated, remove these unnecessary references.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/frv/kernel/setup.c
arch/xtensa/platform-iss/console.c
drivers/char/amiserial.c

index ef6865f0b9792a1ac199127f73aba068d426b410..767ebb55bd83d7e763b38d719aee47728f037052 100644 (file)
@@ -790,12 +790,10 @@ void __init setup_arch(char **cmdline_p)
 #ifndef CONFIG_GDBSTUB_UART0
        __reg(UART0_BASE + UART_IER * 8) = 0;
        early_serial_setup(&__frv_uart0);
-//     register_serial(&__frv_uart0);
 #endif
 #ifndef CONFIG_GDBSTUB_UART1
        __reg(UART1_BASE + UART_IER * 8) = 0;
        early_serial_setup(&__frv_uart1);
-//     register_serial(&__frv_uart1);
 #endif
 
 #if defined(CONFIG_CHR_DEV_FLASH) || defined(CONFIG_BLK_DEV_FLASH)
index 9e2b53f6a90740dde96fb39cda854705715414cd..4fbddf92a921e9d0c32b33e259c5a5f1026c72a2 100644 (file)
@@ -198,9 +198,6 @@ static int rs_read_proc(char *page, char **start, off_t off, int count,
 }
 
 
-int register_serial(struct serial_struct*);
-void unregister_serial(int);
-
 static struct tty_operations serial_ops = {
        .open = rs_open,
        .close = rs_close,
index 777bc499bbbd103fcb9246b9b65c72a1514a0eb6..2a36561eec68dab6efc8e690167df7a78668f1eb 100644 (file)
@@ -1973,10 +1973,6 @@ static _INLINE_ void show_serial_version(void)
 }
 
 
-int register_serial(struct serial_struct *req);
-void unregister_serial(int line);
-
-
 static struct tty_operations serial_ops = {
        .open = rs_open,
        .close = rs_close,