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

Commit 68747c5f authored by Geliang Tang's avatar Geliang Tang Committed by Vinod Koul
Browse files

dmaengine: ioat: use setup_timer



Use setup_timer() instead of init_timer() to simplify the code.

Signed-off-by: default avatarGeliang Tang <geliangtang@gmail.com>
Reviewed-by: default avatarDan Williams <dan.j.williams@intel.com>
Signed-off-by: default avatarVinod Koul <vinod.koul@intel.com>
parent 7f3ff14b
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -760,9 +760,7 @@ ioat_init_channel(struct ioatdma_device *ioat_dma,
	dma_cookie_init(&ioat_chan->dma_chan);
	list_add_tail(&ioat_chan->dma_chan.device_node, &dma->channels);
	ioat_dma->idx[idx] = ioat_chan;
	init_timer(&ioat_chan->timer);
	ioat_chan->timer.function = ioat_timer_event;
	ioat_chan->timer.data = data;
	setup_timer(&ioat_chan->timer, ioat_timer_event, data);
	tasklet_init(&ioat_chan->cleanup_task, ioat_cleanup_event, data);
}