diff options
Diffstat (limited to 'drivers/tty/serial/sccnxp.c')
-rw-r--r-- | drivers/tty/serial/sccnxp.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/tty/serial/sccnxp.c b/drivers/tty/serial/sccnxp.c index b9c7a904c1ea..ba43ed159b6a 100644 --- a/drivers/tty/serial/sccnxp.c +++ b/drivers/tty/serial/sccnxp.c | |||
@@ -465,9 +465,9 @@ static void sccnxp_handle_events(struct sccnxp_port *s) | |||
465 | } while (1); | 465 | } while (1); |
466 | } | 466 | } |
467 | 467 | ||
468 | static void sccnxp_timer(unsigned long data) | 468 | static void sccnxp_timer(struct timer_list *t) |
469 | { | 469 | { |
470 | struct sccnxp_port *s = (struct sccnxp_port *)data; | 470 | struct sccnxp_port *s = from_timer(s, t, timer); |
471 | unsigned long flags; | 471 | unsigned long flags; |
472 | 472 | ||
473 | spin_lock_irqsave(&s->lock, flags); | 473 | spin_lock_irqsave(&s->lock, flags); |
@@ -987,8 +987,7 @@ static int sccnxp_probe(struct platform_device *pdev) | |||
987 | 987 | ||
988 | dev_err(&pdev->dev, "Unable to reguest IRQ %i\n", s->irq); | 988 | dev_err(&pdev->dev, "Unable to reguest IRQ %i\n", s->irq); |
989 | } else { | 989 | } else { |
990 | init_timer(&s->timer); | 990 | timer_setup(&s->timer, sccnxp_timer, 0); |
991 | setup_timer(&s->timer, sccnxp_timer, (unsigned long)s); | ||
992 | mod_timer(&s->timer, jiffies + | 991 | mod_timer(&s->timer, jiffies + |
993 | usecs_to_jiffies(s->pdata.poll_time_us)); | 992 | usecs_to_jiffies(s->pdata.poll_time_us)); |
994 | return 0; | 993 | return 0; |