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:
Muhammad Falak R Wani 2015-10-25 15:47:33 +05:30 committed by Greg Kroah-Hartman
parent 6149e2e444
commit 567ae32ad8
1 changed files with 2 additions and 3 deletions

View File

@ -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);