Commit 86e7e874 authored by Jiri Slaby's avatar Jiri Slaby Committed by Greg Kroah-Hartman

XTENSA: iss/console, use setup_timer

Use setup_timer instead of explicit assignments.
Signed-off-by: default avatarJiri Slaby <jslaby@suse.cz>
Cc: Chris Zankel <chris@zankel.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent ac4e016d
...@@ -69,11 +69,8 @@ static void rs_poll(unsigned long); ...@@ -69,11 +69,8 @@ static void rs_poll(unsigned long);
static int rs_open(struct tty_struct *tty, struct file * filp) static int rs_open(struct tty_struct *tty, struct file * filp)
{ {
spin_lock(&timer_lock); spin_lock(&timer_lock);
if (tty->count == 1) { if (tty->count == 1) {
init_timer(&serial_timer); setup_timer(&serial_timer, rs_poll, (unsigned long)tty);
serial_timer.data = (unsigned long) tty;
serial_timer.function = rs_poll;
mod_timer(&serial_timer, jiffies + SERIAL_TIMER_VALUE); mod_timer(&serial_timer, jiffies + SERIAL_TIMER_VALUE);
} }
spin_unlock(&timer_lock); spin_unlock(&timer_lock);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment