Skip to contentSkip to conversation

scsi: sym53c8xx_2: use setup_timer instead of init_timer

PATCH New Colin King 1 participant 1 message Nov 24, 2017

Subsystems (3)
lore
Share & tools
lore

Colin King

author
#0 lore raw

PATCH 1/1 scsi: sym53c8xx_2: use setup_timer instead of init_timer

From: Colin Ian King <[email protected]>

Use setup_timer function instead of initializing timer with the function and data fields.

---
 drivers/scsi/sym53c8xx_2/sym_glue.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/scsi/sym53c8xx_2/sym_glue.c +1 -3
index d32e3ba8863e..285397d42558 100644
@@ -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);
 
Signature · 1 line
2.14.1