Commit 20bdb04d authored by Geliang Tang's avatar Geliang Tang Committed by Mauro Carvalho Chehab

[media] netup_unidvb: use setup_timer

Use setup_timer() instead of init_timer() to simplify the code.
Signed-off-by: default avatarGeliang Tang <geliangtang@gmail.com>
Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent f563607a
...@@ -663,9 +663,8 @@ static int netup_unidvb_dma_init(struct netup_unidvb_dev *ndev, int num) ...@@ -663,9 +663,8 @@ static int netup_unidvb_dma_init(struct netup_unidvb_dev *ndev, int num)
spin_lock_init(&dma->lock); spin_lock_init(&dma->lock);
INIT_WORK(&dma->work, netup_unidvb_dma_worker); INIT_WORK(&dma->work, netup_unidvb_dma_worker);
INIT_LIST_HEAD(&dma->free_buffers); INIT_LIST_HEAD(&dma->free_buffers);
dma->timeout.function = netup_unidvb_dma_timeout; setup_timer(&dma->timeout, netup_unidvb_dma_timeout,
dma->timeout.data = (unsigned long)dma; (unsigned long)dma);
init_timer(&dma->timeout);
dma->ring_buffer_size = ndev->dma_size / 2; dma->ring_buffer_size = ndev->dma_size / 2;
dma->addr_virt = ndev->dma_virt + dma->ring_buffer_size * num; dma->addr_virt = ndev->dma_virt + dma->ring_buffer_size * num;
dma->addr_phys = (dma_addr_t)((u64)ndev->dma_phys + dma->addr_phys = (dma_addr_t)((u64)ndev->dma_phys +
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment