diff options
author | Jiri Slaby <jslaby@suse.cz> | 2012-03-05 08:52:31 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-03-08 15:48:27 -0500 |
commit | 3c4782dcd9b8d02e79f0f0bd1fe6e30a79790526 (patch) | |
tree | 37ddd0011b1a8ffa8e656fe23f6745c80f23b73b /arch/ia64 | |
parent | 98e3a9e6dd99f1b8ac2a03b8b4942eec16ef911b (diff) |
TTY: simserial no longer needs serialP
Let's do a spin-off of serial_state structure with only needed
elements.
And remove serialP crap from includes.
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Cc: Tony Luck <tony.luck@intel.com>
Cc: Fenghua Yu <fenghua.yu@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/ia64')
-rw-r--r-- | arch/ia64/hp/sim/simserial.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/arch/ia64/hp/sim/simserial.c b/arch/ia64/hp/sim/simserial.c index 3698a2fe221d..120aad4d5362 100644 --- a/arch/ia64/hp/sim/simserial.c +++ b/arch/ia64/hp/sim/simserial.c | |||
@@ -27,10 +27,10 @@ | |||
27 | #include <linux/seq_file.h> | 27 | #include <linux/seq_file.h> |
28 | #include <linux/slab.h> | 28 | #include <linux/slab.h> |
29 | #include <linux/capability.h> | 29 | #include <linux/capability.h> |
30 | #include <linux/circ_buf.h> | ||
30 | #include <linux/console.h> | 31 | #include <linux/console.h> |
31 | #include <linux/module.h> | 32 | #include <linux/module.h> |
32 | #include <linux/serial.h> | 33 | #include <linux/serial.h> |
33 | #include <linux/serialP.h> | ||
34 | #include <linux/sysrq.h> | 34 | #include <linux/sysrq.h> |
35 | 35 | ||
36 | #include <asm/irq.h> | 36 | #include <asm/irq.h> |
@@ -46,6 +46,13 @@ | |||
46 | 46 | ||
47 | #define NR_PORTS 1 /* only one port for now */ | 47 | #define NR_PORTS 1 /* only one port for now */ |
48 | 48 | ||
49 | struct serial_state { | ||
50 | struct tty_port tport; | ||
51 | struct circ_buf xmit; | ||
52 | int irq; | ||
53 | int x_char; | ||
54 | }; | ||
55 | |||
49 | static char *serial_name = "SimSerial driver"; | 56 | static char *serial_name = "SimSerial driver"; |
50 | static char *serial_version = "0.6"; | 57 | static char *serial_version = "0.6"; |
51 | 58 | ||