From: Muhammad Falak R Wani Date: Sun, 25 Oct 2015 10:17:33 +0000 (+0530) Subject: staging: ipath: ipath_verbs: Use setup_timer X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=567ae32ad87c8778965350b189a36d757293c82d;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rdma/ipath/ipath_verbs.c b/drivers/staging/rdma/ipath/ipath_verbs.c index ea3f21aa0b38..a2fb41bba117 100644 --- a/drivers/staging/rdma/ipath/ipath_verbs.c +++ b/drivers/staging/rdma/ipath/ipath_verbs.c @@ -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);