Skip to content

Commit

Permalink
ARM/AVR32: get rid of serial_at91.h
Browse files Browse the repository at this point in the history
The definitions provided by serial_at91.h are only used by the
atmel_serial driver, and the function that uses it is never called
from anywhere in the kernel.  Therefore, these definitions are unused
and/or obsolete, and can be removed.

Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Russell King committed Nov 16, 2012
1 parent 4600006 commit 95e629b
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 84 deletions.
33 changes: 0 additions & 33 deletions arch/arm/include/asm/mach/serial_at91.h

This file was deleted.

33 changes: 0 additions & 33 deletions arch/avr32/include/asm/mach/serial_at91.h

This file was deleted.

18 changes: 0 additions & 18 deletions drivers/tty/serial/atmel_serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
#include <asm/io.h>
#include <asm/ioctls.h>

#include <asm/mach/serial_at91.h>
#include <mach/board.h>

#ifdef CONFIG_ARM
Expand Down Expand Up @@ -1513,23 +1512,6 @@ static void __devinit atmel_init_port(struct atmel_uart_port *atmel_port,
}
}

/*
* Register board-specific modem-control line handlers.
*/
void __init atmel_register_uart_fns(struct atmel_port_fns *fns)
{
if (fns->enable_ms)
atmel_pops.enable_ms = fns->enable_ms;
if (fns->get_mctrl)
atmel_pops.get_mctrl = fns->get_mctrl;
if (fns->set_mctrl)
atmel_pops.set_mctrl = fns->set_mctrl;
atmel_open_hook = fns->open;
atmel_close_hook = fns->close;
atmel_pops.pm = fns->pm;
atmel_pops.set_wake = fns->set_wake;
}

struct platform_device *atmel_default_console_device; /* the serial console device */

#ifdef CONFIG_SERIAL_ATMEL_CONSOLE
Expand Down

0 comments on commit 95e629b

Please sign in to comment.