staging: hfi1: sdma: Use setup_timer
authorMuhammad Falak R Wani <falakreyaz@gmail.com>
Sun, 25 Oct 2015 10:43:25 +0000 (16:13 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 Oct 2015 08:06:50 +0000 (17:06 +0900)
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>
drivers/staging/rdma/hfi1/sdma.c

index 63ab72102183ecb5949b892ccd3e96ce3c1f9761..16d93fffe5def8f718326caeda0baf66d9d63e90 100644 (file)
@@ -1094,10 +1094,8 @@ int sdma_init(struct hfi1_devdata *dd, u8 port)
 
                sde->progress_check_head = 0;
 
-               init_timer(&sde->err_progress_check_timer);
-               sde->err_progress_check_timer.function =
-                                               sdma_err_progress_check;
-               sde->err_progress_check_timer.data = (unsigned long)sde;
+               setup_timer(&sde->err_progress_check_timer,
+                           sdma_err_progress_check, (unsigned long)sde);
 
                sde->descq = dma_zalloc_coherent(
                        &dd->pcidev->dev,