Skip to contentSkip to conversation

staging: rdma: ipath: Use setup_timer

PATCH Superseded Muhammad Falak R Wani 1 participant 1 message Oct 24, 2015

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 3/4 staging: rdma: ipath: Use setup_timer

Use the timer API function setup_timer instead of init_timer, removing the structure field assignments.

---
 drivers/staging/rdma/ipath/ipath_sdma.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/staging/rdma/ipath/ipath_sdma.c +3 -3
index 17a5177..1ffc06a 100644
@@ -400,9 +400,9 @@ static int alloc_sdma(struct ipath_devdata *dd)
 	}
 	dd->ipath_sdma_head_dma[0] = 0;
 
-	init_timer(&dd->ipath_sdma_vl15_timer);
-	dd->ipath_sdma_vl15_timer.function = vl15_watchdog_timeout;
-	dd->ipath_sdma_vl15_timer.data = (unsigned long)dd;
+	setup_timer(&dd->ipath_sdma_vl15_timer, vl15_watchdog_timeout,
+			(unsigned long)dd);
+
 	atomic_set(&dd->ipath_sdma_vl15_count, 0);
 
 	goto done;
Signature · 1 line
1.9.1