Skip to contentSkip to conversation

uwb: neh: Use setup_timer

PATCH New Muhammad Falak R Wani 1 participant 1 message Oct 20, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 2/3 uwb: neh: Use setup_timer

Use timer API function setup_timer instead of init_timer to initialize the timer.

---
 drivers/uwb/neh.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/uwb/neh.c +1 -3
index 8cb71bb..36b5cb6 100644
@@ -223,9 +223,7 @@ struct uwb_rc_neh *uwb_rc_neh_add(struct uwb_rc *rc, struct uwb_rccb *cmd,
 
 	kref_init(&neh->kref);
 	INIT_LIST_HEAD(&neh->list_node);
-	init_timer(&neh->timer);
-	neh->timer.function = uwb_rc_neh_timer;
-	neh->timer.data     = (unsigned long)neh;
+	setup_timer(&neh->timer, uwb_rc_neh_timer, (unsigned long)neh);
 
 	neh->rc = rc;
 	neh->evt_type = expected_type;
Signature · 1 line
1.9.1