mirror of
https://github.com/torvalds/linux
synced 2024-11-05 18:23:50 +00:00
uwb: drp: Use setup_timer
Use timer API function setup_timer instead of init_timer to initialize a kernel 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
b9ca0c948c
commit
cf0d5fbd55
1 changed files with 1 additions and 3 deletions
|
@ -642,9 +642,7 @@ static void uwb_drp_handle_alien_drp(struct uwb_rc *rc, struct uwb_ie_drp *drp_i
|
|||
}
|
||||
|
||||
INIT_LIST_HEAD(&cnflt->rc_node);
|
||||
init_timer(&cnflt->timer);
|
||||
cnflt->timer.function = uwb_cnflt_timer;
|
||||
cnflt->timer.data = (unsigned long)cnflt;
|
||||
setup_timer(&cnflt->timer, uwb_cnflt_timer, (unsigned long)cnflt);
|
||||
|
||||
cnflt->rc = rc;
|
||||
INIT_WORK(&cnflt->cnflt_update_work, uwb_cnflt_update_work);
|
||||
|
|
Loading…
Reference in a new issue