cisco_proto settings;
 
        struct timer_list timer;
+       struct net_device *dev;
        spinlock_t lock;
        unsigned long last_poll;
        int up;
 
 
 
-static void cisco_timer(unsigned long arg)
+static void cisco_timer(struct timer_list *t)
 {
-       struct net_device *dev = (struct net_device *)arg;
-       hdlc_device *hdlc = dev_to_hdlc(dev);
-       struct cisco_state *st = state(hdlc);
+       struct cisco_state *st = from_timer(st, t, timer);
+       struct net_device *dev = st->dev;
 
        spin_lock(&st->lock);
        if (st->up &&
        spin_unlock(&st->lock);
 
        st->timer.expires = jiffies + st->settings.interval * HZ;
-       st->timer.function = cisco_timer;
-       st->timer.data = arg;
        add_timer(&st->timer);
 }
 
        st->up = st->txseq = st->rxseq = 0;
        spin_unlock_irqrestore(&st->lock, flags);
 
-       setup_timer(&st->timer, cisco_timer, (unsigned long)dev);
+       st->dev = dev;
+       timer_setup(&st->timer, cisco_timer, 0);
        st->timer.expires = jiffies + HZ; /* First poll after 1 s */
        add_timer(&st->timer);
 }
 
        int dce_pvc_count;
 
        struct timer_list timer;
+       struct net_device *dev;
        unsigned long last_poll;
        int reliable;
        int dce_changed;
 }
 
 
-static void fr_timer(unsigned long arg)
+static void fr_timer(struct timer_list *t)
 {
-       struct net_device *dev = (struct net_device *)arg;
+       struct frad_state *st = from_timer(st, t, timer);
+       struct net_device *dev = st->dev;
        hdlc_device *hdlc = dev_to_hdlc(dev);
        int i, cnt = 0, reliable;
        u32 list;
                        state(hdlc)->settings.t391 * HZ;
        }
 
-       state(hdlc)->timer.function = fr_timer;
-       state(hdlc)->timer.data = arg;
        add_timer(&state(hdlc)->timer);
 }
 
                state(hdlc)->n391cnt = 0;
                state(hdlc)->txseq = state(hdlc)->rxseq = 0;
 
-               setup_timer(&state(hdlc)->timer, fr_timer,
-                           (unsigned long)dev);
+               state(hdlc)->dev = dev;
+               timer_setup(&state(hdlc)->timer, fr_timer, 0);
                /* First poll after 1 s */
                state(hdlc)->timer.expires = jiffies + HZ;
                add_timer(&state(hdlc)->timer);