diff options
author | Jiri Slaby <jslaby@suse.cz> | 2011-09-01 10:20:57 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-09-22 18:49:26 -0400 |
commit | ee160a38eee357ed2572cf41437d5814ce53c839 (patch) | |
tree | 8f4b4435b0e142f66842808dc07bf16013f8413a /drivers/tty/serial/xilinx_uartps.c | |
parent | 2c16a353104c8ad7add9ded6913d9fa090d5e7fb (diff) |
TTY: serial, fix includes in some drivers
linux/tty_flip.h is included in linux/serial_core.h. But this may (and
will) change in the future. Then we would get build errors such as:
.../tty/serial/max3107.c: In function ‘put_data_to_circ_buf’:
.../tty/serial/max3107.c:149:2: error: implicit declaration of function ‘tty_insert_flip_string’
So fix all the drviers which call tty flip buffer helpers to really
include linux/tty_flip.h. And also make sure that those include
linux/tty.h when operating with struct tty_struct.
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Cc: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/tty/serial/xilinx_uartps.c')
-rw-r--r-- | drivers/tty/serial/xilinx_uartps.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/tty/serial/xilinx_uartps.c b/drivers/tty/serial/xilinx_uartps.c index 19cc1e8149dd..8c03b127fd03 100644 --- a/drivers/tty/serial/xilinx_uartps.c +++ b/drivers/tty/serial/xilinx_uartps.c | |||
@@ -12,9 +12,11 @@ | |||
12 | */ | 12 | */ |
13 | 13 | ||
14 | #include <linux/platform_device.h> | 14 | #include <linux/platform_device.h> |
15 | #include <linux/serial.h> | ||
15 | #include <linux/serial_core.h> | 16 | #include <linux/serial_core.h> |
17 | #include <linux/tty.h> | ||
18 | #include <linux/tty_flip.h> | ||
16 | #include <linux/console.h> | 19 | #include <linux/console.h> |
17 | #include <linux/serial.h> | ||
18 | #include <linux/irq.h> | 20 | #include <linux/irq.h> |
19 | #include <linux/io.h> | 21 | #include <linux/io.h> |
20 | #include <linux/of.h> | 22 | #include <linux/of.h> |