TTY: serial, fix includes in some drivers
authorJiri Slaby <jslaby@suse.cz>
Thu, 1 Sep 2011 14:20:57 +0000 (16:20 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 22 Sep 2011 22:49:26 +0000 (15:49 -0700)
commitee160a38eee357ed2572cf41437d5814ce53c839
tree8f4b4435b0e142f66842808dc07bf16013f8413a
parent2c16a353104c8ad7add9ded6913d9fa090d5e7fb
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>
22 files changed:
drivers/tty/serial/apbuart.c
drivers/tty/serial/cpm_uart/cpm_uart_core.c
drivers/tty/serial/dz.c
drivers/tty/serial/ioc3_serial.c
drivers/tty/serial/ioc4_serial.c
drivers/tty/serial/m32r_sio.c
drivers/tty/serial/max3100.c
drivers/tty/serial/max3107.c
drivers/tty/serial/mpc52xx_uart.c
drivers/tty/serial/msm_serial_hs.c
drivers/tty/serial/mux.c
drivers/tty/serial/nwpserial.c
drivers/tty/serial/pch_uart.c
drivers/tty/serial/sb1250-duart.c
drivers/tty/serial/serial_ks8695.c
drivers/tty/serial/serial_txx9.c
drivers/tty/serial/sn_console.c
drivers/tty/serial/timbuart.c
drivers/tty/serial/uartlite.c
drivers/tty/serial/ucc_uart.c
drivers/tty/serial/xilinx_uartps.c
drivers/tty/serial/zs.c