diff options
Diffstat (limited to 'net/irda/af_irda.c')
-rw-r--r-- | net/irda/af_irda.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/net/irda/af_irda.c b/net/irda/af_irda.c index 07dfa7fdd2a0..240b0cbfb532 100644 --- a/net/irda/af_irda.c +++ b/net/irda/af_irda.c | |||
@@ -2410,9 +2410,8 @@ bed: | |||
2410 | 2410 | ||
2411 | /* Set watchdog timer to expire in <val> ms. */ | 2411 | /* Set watchdog timer to expire in <val> ms. */ |
2412 | self->errno = 0; | 2412 | self->errno = 0; |
2413 | init_timer(&self->watchdog); | 2413 | setup_timer(&self->watchdog, irda_discovery_timeout, |
2414 | self->watchdog.function = irda_discovery_timeout; | 2414 | (unsigned long)self); |
2415 | self->watchdog.data = (unsigned long) self; | ||
2416 | self->watchdog.expires = jiffies + (val * HZ/1000); | 2415 | self->watchdog.expires = jiffies + (val * HZ/1000); |
2417 | add_timer(&(self->watchdog)); | 2416 | add_timer(&(self->watchdog)); |
2418 | 2417 | ||