Merge branches 'release' and 'gpe-ack' into release
[platform/adaptation/renesas_rcar/renesas_kernel.git] / net / irda / af_irda.c
index 07dfa7f..240b0cb 100644 (file)
@@ -2410,9 +2410,8 @@ bed:
 
                        /* Set watchdog timer to expire in <val> ms. */
                        self->errno = 0;
-                       init_timer(&self->watchdog);
-                       self->watchdog.function = irda_discovery_timeout;
-                       self->watchdog.data = (unsigned long) self;
+                       setup_timer(&self->watchdog, irda_discovery_timeout,
+                                       (unsigned long)self);
                        self->watchdog.expires = jiffies + (val * HZ/1000);
                        add_timer(&(self->watchdog));