Skip to content

Commit

Permalink
[PATCH] Serial: remove unnecessary register_serial/unregister_serial
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Russell King authored and Linus Torvalds committed Jun 25, 2005
1 parent 821fe94 commit 7919a69
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 9 deletions.
2 changes: 0 additions & 2 deletions arch/frv/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
3 changes: 0 additions & 3 deletions arch/xtensa/platform-iss/console.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 0 additions & 4 deletions drivers/char/amiserial.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 7919a69

Please sign in to comment.