/*
  *     This gets called every DA_TTY_POLL and polls the channels for data
  */
-static void dashtty_timer(unsigned long ignored)
+static void dashtty_timer(struct timer_list *poll_timer)
 {
        int channel;
 
        if (channel >= 0)
                fetch_data(channel);
 
-       mod_timer(&poll_timer, jiffies + DA_TTY_POLL);
+       mod_timer(poll_timer, jiffies + DA_TTY_POLL);
 }
 
 static void add_poll_timer(struct timer_list *poll_timer)
 {
-       setup_pinned_timer(poll_timer, dashtty_timer, 0);
+       timer_setup(poll_timer, dashtty_timer, TIMER_PINNED);
        poll_timer->expires = jiffies + DA_TTY_POLL;
 
        /*
  * buffers. It is used to delay the expensive writeout until the writer has
  * stopped writing.
  */
-static void dashtty_put_timer(unsigned long ignored)
+static void dashtty_put_timer(struct timer_list *unused)
 {
        if (atomic_read(&dashtty_xmit_cnt))
                wake_up_interruptible(&dashtty_waitqueue);
                complete(&dport->xmit_empty);
        }
 
-       setup_timer(&put_timer, dashtty_put_timer, 0);
+       timer_setup(&put_timer, dashtty_put_timer, 0);
 
        init_waitqueue_head(&dashtty_waitqueue);
        dashtty_thread = kthread_create(put_data, NULL, "ttyDA");