Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 567ae32a authored by Muhammad Falak R Wani's avatar Muhammad Falak R Wani Committed by Greg Kroah-Hartman
Browse files

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: default avatarMuhammad Falak R Wani <falakreyaz@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 6149e2e4
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -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);