aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Gortmaker <paul.gortmaker@windriver.com>2016-06-20 18:55:05 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-06-25 17:00:06 -0400
commita10aebe2cd8dfeebc83a0d1790a429d0fe789fd5 (patch)
treeb7b5d0f4490cb4fa99dced3c3a786356d2291cbc
parent03ba5d5187b009e01215b3f74e508d986b912efb (diff)
serial: m32r_sio: make it explicitly non-modular
The Kconfig currently controlling compilation of this code is: drivers/tty/serial/Kconfig:config SERIAL_M32R_SIO drivers/tty/serial/Kconfig: bool "M32R SIO I/F" ...meaning that it currently is not being built as a module by anyone. Lets remove the modular code that is essentially orphaned, so that when reading the driver there is no doubt it is builtin-only. Since module_init translates to device_initcall in the non-modular case, the init ordering remains unchanged with this commit. We also delete the MODULE_LICENSE tag etc. since all that information is already contained at the top of the file in the comments. We don't replace module.h with init.h since the file already has that. Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: Jiri Slaby <jslaby@suse.com> Cc: linux-serial@vger.kernel.org Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/tty/serial/m32r_sio.c18
1 files changed, 1 insertions, 17 deletions
diff --git a/drivers/tty/serial/m32r_sio.c b/drivers/tty/serial/m32r_sio.c
index 1b01504cf306..218b7118e85d 100644
--- a/drivers/tty/serial/m32r_sio.c
+++ b/drivers/tty/serial/m32r_sio.c
@@ -30,7 +30,6 @@
30#define SUPPORT_SYSRQ 30#define SUPPORT_SYSRQ
31#endif 31#endif
32 32
33#include <linux/module.h>
34#include <linux/tty.h> 33#include <linux/tty.h>
35#include <linux/tty_flip.h> 34#include <linux/tty_flip.h>
36#include <linux/ioport.h> 35#include <linux/ioport.h>
@@ -1057,19 +1056,4 @@ static int __init m32r_sio_init(void)
1057 1056
1058 return ret; 1057 return ret;
1059} 1058}
1060 1059device_initcall(m32r_sio_init);
1061static void __exit m32r_sio_exit(void)
1062{
1063 int i;
1064
1065 for (i = 0; i < UART_NR; i++)
1066 uart_remove_one_port(&m32r_sio_reg, &m32r_sio_ports[i].port);
1067
1068 uart_unregister_driver(&m32r_sio_reg);
1069}
1070
1071module_init(m32r_sio_init);
1072module_exit(m32r_sio_exit);
1073
1074MODULE_LICENSE("GPL");
1075MODULE_DESCRIPTION("Generic M32R SIO serial driver");