diff options
-rw-r--r-- | arch/xtensa/platforms/iss/console.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/xtensa/platforms/iss/console.c b/arch/xtensa/platforms/iss/console.c index 94ab8eca9d77..d1a7861b81f7 100644 --- a/arch/xtensa/platforms/iss/console.c +++ b/arch/xtensa/platforms/iss/console.c | |||
@@ -37,6 +37,7 @@ | |||
37 | #define SERIAL_TIMER_VALUE (20 * HZ) | 37 | #define SERIAL_TIMER_VALUE (20 * HZ) |
38 | 38 | ||
39 | static struct tty_driver *serial_driver; | 39 | static struct tty_driver *serial_driver; |
40 | static struct tty_port serial_port; | ||
40 | static struct timer_list serial_timer; | 41 | static struct timer_list serial_timer; |
41 | 42 | ||
42 | static DEFINE_SPINLOCK(timer_lock); | 43 | static DEFINE_SPINLOCK(timer_lock); |
@@ -68,6 +69,7 @@ static void rs_poll(unsigned long); | |||
68 | 69 | ||
69 | static int rs_open(struct tty_struct *tty, struct file * filp) | 70 | static int rs_open(struct tty_struct *tty, struct file * filp) |
70 | { | 71 | { |
72 | tty->port = &serial_port; | ||
71 | spin_lock(&timer_lock); | 73 | spin_lock(&timer_lock); |
72 | if (tty->count == 1) { | 74 | if (tty->count == 1) { |
73 | setup_timer(&serial_timer, rs_poll, (unsigned long)tty); | 75 | setup_timer(&serial_timer, rs_poll, (unsigned long)tty); |
@@ -202,6 +204,8 @@ static const struct tty_operations serial_ops = { | |||
202 | 204 | ||
203 | int __init rs_init(void) | 205 | int __init rs_init(void) |
204 | { | 206 | { |
207 | tty_port_init(&serial_port); | ||
208 | |||
205 | serial_driver = alloc_tty_driver(SERIAL_MAX_NUM_LINES); | 209 | serial_driver = alloc_tty_driver(SERIAL_MAX_NUM_LINES); |
206 | 210 | ||
207 | printk ("%s %s\n", serial_name, serial_version); | 211 | printk ("%s %s\n", serial_name, serial_version); |