staging: ipath: ipath_verbs: Use setup_timer
Use the timer API function setup_timer instead of init_timer, removing the structure field assignments. 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
6149e2e444
commit
567ae32ad8
|
@ -1956,9 +1956,8 @@ static int enable_timer(struct ipath_devdata *dd)
|
|||
dd->ipath_gpio_mask);
|
||||
}
|
||||
|
||||
init_timer(&dd->verbs_timer);
|
||||
dd->verbs_timer.function = __verbs_timer;
|
||||
dd->verbs_timer.data = (unsigned long)dd;
|
||||
setup_timer(&dd->verbs_timer, __verbs_timer, (unsigned long)dd);
|
||||
|
||||
dd->verbs_timer.expires = jiffies + 1;
|
||||
add_timer(&dd->verbs_timer);
|
||||
|
||||
|
|
Loading…
Reference in New Issue