Skip to content

Commit 578b9ce

Browse files
author
Paul Gortmaker
committed
tty: Add module.h to drivers/tty users who just expect it there.
We are cleaning up the issue that means module.h is omnipresent. These tty users are the people who implictly are relying on that. Fix up the real users to call out the include that they really need. In the case of jsm_driver.c file, it had moduleparam.h but that isn't enough and it needs the full module.h Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
1 parent a59b968 commit 578b9ce

9 files changed

Lines changed: 9 additions & 1 deletion

File tree

‎drivers/tty/hvc/hvc_iseries.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
#include <linux/types.h>
2424
#include <linux/init.h>
2525
#include <linux/kernel.h>
26+
#include <linux/module.h>
2627
#include <linux/spinlock.h>
2728
#include <linux/console.h>
2829

‎drivers/tty/hvc/hvc_vio.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
#include <linux/delay.h>
4242
#include <linux/slab.h>
4343
#include <linux/console.h>
44+
#include <linux/module.h>
4445

4546
#include <asm/hvconsole.h>
4647
#include <asm/vio.h>

‎drivers/tty/serial/jsm/jsm_driver.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
*
2525
*
2626
***********************************************************************/
27-
#include <linux/moduleparam.h>
27+
#include <linux/module.h>
2828
#include <linux/pci.h>
2929
#include <linux/slab.h>
3030

‎drivers/tty/serial/kgdboc.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#include <linux/console.h>
2020
#include <linux/vt_kern.h>
2121
#include <linux/input.h>
22+
#include <linux/module.h>
2223

2324
#define MAX_CONFIG_LEN 40
2425

‎drivers/tty/serial/max3100.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
#include <linux/delay.h>
4444
#include <linux/slab.h>
4545
#include <linux/device.h>
46+
#include <linux/module.h>
4647
#include <linux/serial_core.h>
4748
#include <linux/serial.h>
4849
#include <linux/spi/spi.h>

‎drivers/tty/serial/max3107-aava.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
#include <linux/platform_device.h>
3737
#include <linux/gpio.h>
3838
#include <linux/sfi.h>
39+
#include <linux/module.h>
3940
#include <asm/mrst.h>
4041
#include "max3107.h"
4142

‎drivers/tty/serial/max3107.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
#include <linux/gpio.h>
3737
#include <linux/spi/spi.h>
3838
#include <linux/freezer.h>
39+
#include <linux/module.h>
3940
#include "max3107.h"
4041

4142
static const struct baud_table brg26_ext[] = {

‎drivers/tty/serial/timbuart.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
#include <linux/platform_device.h>
3030
#include <linux/ioport.h>
3131
#include <linux/slab.h>
32+
#include <linux/module.h>
3233

3334
#include "timbuart.h"
3435

‎drivers/tty/serial/xilinx_uartps.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
#include <linux/irq.h>
2121
#include <linux/io.h>
2222
#include <linux/of.h>
23+
#include <linux/module.h>
2324

2425
#define XUARTPS_TTY_NAME "ttyPS"
2526
#define XUARTPS_NAME "xuartps"

0 commit comments

Comments
 (0)