diff options
author | Geliang Tang <geliangtang@gmail.com> | 2017-04-09 04:41:30 +0300 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2017-04-24 07:08:41 +0300 |
commit | 68747c5f3d81771cfc8be2ae98f70a1aea9175c3 (patch) | |
tree | b381b59bcd6a3c934aa014ddab4e190f2237c401 /drivers/dma/ioat | |
parent | 7f3ff14b7eb1ffad132117f08a1973b48e653d43 (diff) | |
download | linux-68747c5f3d81771cfc8be2ae98f70a1aea9175c3.tar.xz |
dmaengine: ioat: use setup_timer
Use setup_timer() instead of init_timer() to simplify the code.
Signed-off-by: Geliang Tang <geliangtang@gmail.com>
Reviewed-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma/ioat')
-rw-r--r-- | drivers/dma/ioat/init.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/dma/ioat/init.c b/drivers/dma/ioat/init.c index cc5259b881d4..6ad4384b3fa8 100644 --- a/drivers/dma/ioat/init.c +++ b/drivers/dma/ioat/init.c @@ -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); } |