summaryrefslogtreecommitdiffstats
path: root/drivers/media/pci/saa7134/saa7134-ts.c
diff options
context:
space:
mode:
authorGeliang Tang <geliangtang@gmail.com>2017-04-09 03:33:57 +0200
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2017-04-10 19:45:05 +0200
commit9e2abdd5bad651983358e5aef21892644a2683f6 (patch)
tree06d34e8c54d4567c00d609ab4ad4e83f504381a0 /drivers/media/pci/saa7134/saa7134-ts.c
parent[media] media: bcm2048: fix several macros (diff)
downloadlinux-9e2abdd5bad651983358e5aef21892644a2683f6.tar.xz
linux-9e2abdd5bad651983358e5aef21892644a2683f6.zip
[media] saa7134: use setup_timer
Use setup_timer() instead of init_timer() to simplify the code. Signed-off-by: Geliang Tang <geliangtang@gmail.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/pci/saa7134/saa7134-ts.c')
-rw-r--r--drivers/media/pci/saa7134/saa7134-ts.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/media/pci/saa7134/saa7134-ts.c b/drivers/media/pci/saa7134/saa7134-ts.c
index 578e03f8c041..7414878af9e0 100644
--- a/drivers/media/pci/saa7134/saa7134-ts.c
+++ b/drivers/media/pci/saa7134/saa7134-ts.c
@@ -223,9 +223,8 @@ int saa7134_ts_init1(struct saa7134_dev *dev)
dev->ts.nr_packets = ts_nr_packets;
INIT_LIST_HEAD(&dev->ts_q.queue);
- init_timer(&dev->ts_q.timeout);
- dev->ts_q.timeout.function = saa7134_buffer_timeout;
- dev->ts_q.timeout.data = (unsigned long)(&dev->ts_q);
+ setup_timer(&dev->ts_q.timeout, saa7134_buffer_timeout,
+ (unsigned long)(&dev->ts_q));
dev->ts_q.dev = dev;
dev->ts_q.need_two = 1;
dev->ts_started = 0;