summaryrefslogtreecommitdiff
path: root/drivers/media/pci/pt3
diff options
context:
space:
mode:
authorJasmin Jessich <jasmin@anw.at>2018-04-28 10:45:51 +0300
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-05-09 23:31:06 +0300
commitdde67d50ef0a5597ede14e9d1a689940713f380e (patch)
tree13b4b329f04c6a4552febe5d33fbe85ae8e816d0 /drivers/media/pci/pt3
parentb3bc535a5cd89e1792459b4904d0f6c2518fffec (diff)
downloadlinux-dde67d50ef0a5597ede14e9d1a689940713f380e.tar.xz
media: Revert cleanup ktime_set() usage
This reverts 8b0e195314fa, because media-tree drivers should use the API functions to initialize variables of type ktime_t. Cc: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Jasmin Jessich <jasmin@anw.at> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'drivers/media/pci/pt3')
-rw-r--r--drivers/media/pci/pt3/pt3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/pci/pt3/pt3.c b/drivers/media/pci/pt3/pt3.c
index dcefe854022e..90273b4d772f 100644
--- a/drivers/media/pci/pt3/pt3.c
+++ b/drivers/media/pci/pt3/pt3.c
@@ -444,7 +444,7 @@ static int pt3_fetch_thread(void *data)
pt3_proc_dma(adap);
- delay = PT3_FETCH_DELAY * NSEC_PER_MSEC;
+ delay = ktime_set(0, PT3_FETCH_DELAY * NSEC_PER_MSEC);
set_current_state(TASK_UNINTERRUPTIBLE);
freezable_schedule_hrtimeout_range(&delay,
PT3_FETCH_DELAY_DELTA * NSEC_PER_MSEC,