mirror of https://gitee.com/openkylin/linux.git
XTENSA: iss/console, use setup_timer
Use setup_timer instead of explicit assignments. Signed-off-by: Jiri Slaby <jslaby@suse.cz> Cc: Chris Zankel <chris@zankel.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
ac4e016df4
commit
86e7e87463
|
@ -69,11 +69,8 @@ static void rs_poll(unsigned long);
|
|||
static int rs_open(struct tty_struct *tty, struct file * filp)
|
||||
{
|
||||
spin_lock(&timer_lock);
|
||||
|
||||
if (tty->count == 1) {
|
||||
init_timer(&serial_timer);
|
||||
serial_timer.data = (unsigned long) tty;
|
||||
serial_timer.function = rs_poll;
|
||||
setup_timer(&serial_timer, rs_poll, (unsigned long)tty);
|
||||
mod_timer(&serial_timer, jiffies + SERIAL_TIMER_VALUE);
|
||||
}
|
||||
spin_unlock(&timer_lock);
|
||||
|
|
Loading…
Reference in New Issue