]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - drivers/scsi/sym53c8xx_2/sym_glue.c
treewide: init_timer() -> setup_timer()
[mirror_ubuntu-bionic-kernel.git] / drivers / scsi / sym53c8xx_2 / sym_glue.c
index d32e3ba8863e86ef9e6ca55c5311697683050c16..285397d425582cf5a0926bc3bed374d838ef4d63 100644 (file)
@@ -1351,9 +1351,7 @@ static struct Scsi_Host *sym_attach(struct scsi_host_template *tpnt, int unit,
        /*
         *  Start the timer daemon
         */
-       init_timer(&np->s.timer);
-       np->s.timer.data     = (unsigned long) np;
-       np->s.timer.function = sym53c8xx_timer;
+       setup_timer(&np->s.timer, sym53c8xx_timer, (unsigned long)np);
        np->s.lasttime=0;
        sym_timer (np);