aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2012-09-21 05:26:40 -0400
committerRussell King <rmk+kernel@arm.linux.org.uk>2012-11-16 06:35:30 -0500
commit95e629b761ce36996d1befe2824d5346b5a220b9 (patch)
tree40ca481e7b4bf59c58e6d4c0800719d34ad907d7
parent46000065a631c6d21452d533baf086175c384ba4 (diff)
ARM/AVR32: get rid of serial_at91.h
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>
-rw-r--r--arch/arm/include/asm/mach/serial_at91.h33
-rw-r--r--arch/avr32/include/asm/mach/serial_at91.h33
-rw-r--r--drivers/tty/serial/atmel_serial.c18
3 files changed, 0 insertions, 84 deletions
diff --git a/arch/arm/include/asm/mach/serial_at91.h b/arch/arm/include/asm/mach/serial_at91.h
deleted file mode 100644
index ea6d063923b8..000000000000
--- a/arch/arm/include/asm/mach/serial_at91.h
+++ /dev/null
@@ -1,33 +0,0 @@
1/*
2 * arch/arm/include/asm/mach/serial_at91.h
3 *
4 * Based on serial_sa1100.h by Nicolas Pitre
5 *
6 * Copyright (C) 2002 ATMEL Rousset
7 *
8 * Low level machine dependent UART functions.
9 */
10
11struct uart_port;
12
13/*
14 * This is a temporary structure for registering these
15 * functions; it is intended to be discarded after boot.
16 */
17struct atmel_port_fns {
18 void (*set_mctrl)(struct uart_port *, u_int);
19 u_int (*get_mctrl)(struct uart_port *);
20 void (*enable_ms)(struct uart_port *);
21 void (*pm)(struct uart_port *, u_int, u_int);
22 int (*set_wake)(struct uart_port *, u_int);
23 int (*open)(struct uart_port *);
24 void (*close)(struct uart_port *);
25};
26
27#if defined(CONFIG_SERIAL_ATMEL)
28void atmel_register_uart_fns(struct atmel_port_fns *fns);
29#else
30#define atmel_register_uart_fns(fns) do { } while (0)
31#endif
32
33
diff --git a/arch/avr32/include/asm/mach/serial_at91.h b/arch/avr32/include/asm/mach/serial_at91.h
deleted file mode 100644
index 55b317a89061..000000000000
--- a/arch/avr32/include/asm/mach/serial_at91.h
+++ /dev/null
@@ -1,33 +0,0 @@
1/*
2 * linux/include/asm-arm/mach/serial_at91.h
3 *
4 * Based on serial_sa1100.h by Nicolas Pitre
5 *
6 * Copyright (C) 2002 ATMEL Rousset
7 *
8 * Low level machine dependent UART functions.
9 */
10
11struct uart_port;
12
13/*
14 * This is a temporary structure for registering these
15 * functions; it is intended to be discarded after boot.
16 */
17struct atmel_port_fns {
18 void (*set_mctrl)(struct uart_port *, u_int);
19 u_int (*get_mctrl)(struct uart_port *);
20 void (*enable_ms)(struct uart_port *);
21 void (*pm)(struct uart_port *, u_int, u_int);
22 int (*set_wake)(struct uart_port *, u_int);
23 int (*open)(struct uart_port *);
24 void (*close)(struct uart_port *);
25};
26
27#if defined(CONFIG_SERIAL_ATMEL)
28void atmel_register_uart_fns(struct atmel_port_fns *fns);
29#else
30#define atmel_register_uart_fns(fns) do { } while (0)
31#endif
32
33
diff --git a/drivers/tty/serial/atmel_serial.c b/drivers/tty/serial/atmel_serial.c
index 3d7e1ee2fa57..a6134c94a9fc 100644
--- a/drivers/tty/serial/atmel_serial.c
+++ b/drivers/tty/serial/atmel_serial.c
@@ -43,7 +43,6 @@
43#include <asm/io.h> 43#include <asm/io.h>
44#include <asm/ioctls.h> 44#include <asm/ioctls.h>
45 45
46#include <asm/mach/serial_at91.h>
47#include <mach/board.h> 46#include <mach/board.h>
48 47
49#ifdef CONFIG_ARM 48#ifdef CONFIG_ARM
@@ -1513,23 +1512,6 @@ static void __devinit atmel_init_port(struct atmel_uart_port *atmel_port,
1513 } 1512 }
1514} 1513}
1515 1514
1516/*
1517 * Register board-specific modem-control line handlers.
1518 */
1519void __init atmel_register_uart_fns(struct atmel_port_fns *fns)
1520{
1521 if (fns->enable_ms)
1522 atmel_pops.enable_ms = fns->enable_ms;
1523 if (fns->get_mctrl)
1524 atmel_pops.get_mctrl = fns->get_mctrl;
1525 if (fns->set_mctrl)
1526 atmel_pops.set_mctrl = fns->set_mctrl;
1527 atmel_open_hook = fns->open;
1528 atmel_close_hook = fns->close;
1529 atmel_pops.pm = fns->pm;
1530 atmel_pops.set_wake = fns->set_wake;
1531}
1532
1533struct platform_device *atmel_default_console_device; /* the serial console device */ 1515struct platform_device *atmel_default_console_device; /* the serial console device */
1534 1516
1535#ifdef CONFIG_SERIAL_ATMEL_CONSOLE 1517#ifdef CONFIG_SERIAL_ATMEL_CONSOLE