aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty/serial/m32r_sio.c
diff options
context:
space:
mode:
authorJiri Slaby <jslaby@suse.cz>2016-01-12 04:59:06 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-02-07 01:16:58 -0500
commitd4dbe374f430156738d34e4572c58f387d558e83 (patch)
treec64d5d44fc3afad9cfba0c0f7e59533982c71a86 /drivers/tty/serial/m32r_sio.c
parente57c25367e56feca96f8959775503cf7747a7dbd (diff)
TTY: serial/m32r_sio, disband m32r_sio.h
The only needed information from the header is struct old_serial_port. Move it to m32r_sio.c, make it const and anonymous. And kill the rest from the header as it is dead stuff. Given m32r_sio_suspend_port and m32r_sio_resume_port are local to m32r_sio.c and unused, kill them from .c too. Signed-off-by: Jiri Slaby <jslaby@suse.cz> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial/m32r_sio.c')
-rw-r--r--drivers/tty/serial/m32r_sio.c37
1 files changed, 10 insertions, 27 deletions
diff --git a/drivers/tty/serial/m32r_sio.c b/drivers/tty/serial/m32r_sio.c
index 0eeb64f2499c..3c76ffc2d10a 100644
--- a/drivers/tty/serial/m32r_sio.c
+++ b/drivers/tty/serial/m32r_sio.c
@@ -47,7 +47,6 @@
47#define BAUD_RATE 115200 47#define BAUD_RATE 115200
48 48
49#include <linux/serial_core.h> 49#include <linux/serial_core.h>
50#include "m32r_sio.h"
51#include "m32r_sio_reg.h" 50#include "m32r_sio_reg.h"
52 51
53/* 52/*
@@ -98,7 +97,16 @@
98 97
99#endif /* !CONFIG_PLAT_USRV */ 98#endif /* !CONFIG_PLAT_USRV */
100 99
101static struct old_serial_port old_serial_port[] = { 100static const struct {
101 unsigned int uart;
102 unsigned int baud_base;
103 unsigned int port;
104 unsigned int irq;
105 unsigned int flags;
106 unsigned char io_type;
107 unsigned char __iomem *iomem_base;
108 unsigned short iomem_reg_shift;
109} old_serial_port[] = {
102 SERIAL_PORT_DFNS 110 SERIAL_PORT_DFNS
103}; 111};
104 112
@@ -1112,28 +1120,6 @@ static struct uart_driver m32r_sio_reg = {
1112 .cons = M32R_SIO_CONSOLE, 1120 .cons = M32R_SIO_CONSOLE,
1113}; 1121};
1114 1122
1115/**
1116 * m32r_sio_suspend_port - suspend one serial port
1117 * @line: serial line number
1118 *
1119 * Suspend one serial port.
1120 */
1121void m32r_sio_suspend_port(int line)
1122{
1123 uart_suspend_port(&m32r_sio_reg, &m32r_sio_ports[line].port);
1124}
1125
1126/**
1127 * m32r_sio_resume_port - resume one serial port
1128 * @line: serial line number
1129 *
1130 * Resume one serial port.
1131 */
1132void m32r_sio_resume_port(int line)
1133{
1134 uart_resume_port(&m32r_sio_reg, &m32r_sio_ports[line].port);
1135}
1136
1137static int __init m32r_sio_init(void) 1123static int __init m32r_sio_init(void)
1138{ 1124{
1139 int ret, i; 1125 int ret, i;
@@ -1163,8 +1149,5 @@ static void __exit m32r_sio_exit(void)
1163module_init(m32r_sio_init); 1149module_init(m32r_sio_init);
1164module_exit(m32r_sio_exit); 1150module_exit(m32r_sio_exit);
1165 1151
1166EXPORT_SYMBOL(m32r_sio_suspend_port);
1167EXPORT_SYMBOL(m32r_sio_resume_port);
1168
1169MODULE_LICENSE("GPL"); 1152MODULE_LICENSE("GPL");
1170MODULE_DESCRIPTION("Generic M32R SIO serial driver"); 1153MODULE_DESCRIPTION("Generic M32R SIO serial driver");