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

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

staging: ipath: ipath_sdma: 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 567ae32a
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -400,9 +400,9 @@ static int alloc_sdma(struct ipath_devdata *dd)
	}
	dd->ipath_sdma_head_dma[0] = 0;

	init_timer(&dd->ipath_sdma_vl15_timer);
	dd->ipath_sdma_vl15_timer.function = vl15_watchdog_timeout;
	dd->ipath_sdma_vl15_timer.data = (unsigned long)dd;
	setup_timer(&dd->ipath_sdma_vl15_timer, vl15_watchdog_timeout,
			(unsigned long)dd);

	atomic_set(&dd->ipath_sdma_vl15_count, 0);

	goto done;