summaryrefslogtreecommitdiffstats
path: root/kernel/drivers/uwb/neh.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/drivers/uwb/neh.c')
-rw-r--r--kernel/drivers/uwb/neh.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/kernel/drivers/uwb/neh.c b/kernel/drivers/uwb/neh.c
index 8cb71bb33..36b5cb62c 100644
--- a/kernel/drivers/uwb/neh.c
+++ b/kernel/drivers/uwb/neh.c
@@ -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;