mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-05 12:16:29 -04:00
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:
committed by
Greg Kroah-Hartman
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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user