forked from luck/tmp_suning_uos_patched
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>
This commit is contained in:
parent
a895dc0509
commit
b9ca0c948c
|
@ -223,9 +223,7 @@ struct uwb_rc_neh *uwb_rc_neh_add(struct uwb_rc *rc, struct uwb_rccb *cmd,
|
||||||
|
|
||||||
kref_init(&neh->kref);
|
kref_init(&neh->kref);
|
||||||
INIT_LIST_HEAD(&neh->list_node);
|
INIT_LIST_HEAD(&neh->list_node);
|
||||||
init_timer(&neh->timer);
|
setup_timer(&neh->timer, uwb_rc_neh_timer, (unsigned long)neh);
|
||||||
neh->timer.function = uwb_rc_neh_timer;
|
|
||||||
neh->timer.data = (unsigned long)neh;
|
|
||||||
|
|
||||||
neh->rc = rc;
|
neh->rc = rc;
|
||||||
neh->evt_type = expected_type;
|
neh->evt_type = expected_type;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user