aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/uwb
diff options
context:
space:
mode:
authorMuhammad Falak R Wani <falakreyaz@gmail.com>2015-10-20 14:29:53 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-10-24 22:52:53 -0400
commitb9ca0c948c921e960006aaf319a29c004917cdf6 (patch)
tree08d900008700643f382474aa6609a1049422bdc8 /drivers/uwb
parenta895dc0509e6d2dbe4ec8a184a55323738fde9f6 (diff)
uwb: neh: Use setup_timer
Use timer API function setup_timer instead of init_timer to initialize the timer. Signed-off-by: Muhammad Falak R Wani <falakreyaz@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/uwb')
-rw-r--r--drivers/uwb/neh.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/uwb/neh.c b/drivers/uwb/neh.c
index 8cb71bb333c2..36b5cb62c15d 100644
--- a/drivers/uwb/neh.c
+++ b/drivers/uwb/neh.c
@@ -223,9 +223,7 @@ struct uwb_rc_neh *uwb_rc_neh_add(struct uwb_rc *rc, struct uwb_rccb *cmd,
223 223
224 kref_init(&neh->kref); 224 kref_init(&neh->kref);
225 INIT_LIST_HEAD(&neh->list_node); 225 INIT_LIST_HEAD(&neh->list_node);
226 init_timer(&neh->timer); 226 setup_timer(&neh->timer, uwb_rc_neh_timer, (unsigned long)neh);
227 neh->timer.function = uwb_rc_neh_timer;
228 neh->timer.data = (unsigned long)neh;
229 227
230 neh->rc = rc; 228 neh->rc = rc;
231 neh->evt_type = expected_type; 229 neh->evt_type = expected_type;