diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-07-16 10:47:51 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-07-16 10:47:51 -0300 |
commit | e51f3a2f1e3c23a5c49fd0078bf0f0f08cffc03b (patch) | |
tree | db1156fb179fba1e07f0bb7a87d2a4df53d256be /linux/drivers/media/video/ivtv/ivtv-gpio.c | |
parent | 232fd0b3fa9770197cfeb0a7dd40ac52729104f2 (diff) | |
download | mediapointer-dvb-s2-e51f3a2f1e3c23a5c49fd0078bf0f0f08cffc03b.tar.gz mediapointer-dvb-s2-e51f3a2f1e3c23a5c49fd0078bf0f0f08cffc03b.tar.bz2 |
Clean up schedule_timeout calls in cpia2 and ivtv code
From: Robert P. J. Day <rpjday@mindspring.com>
Signed-off-by: Robert P. J. Day <rpjday@mindspring.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux/drivers/media/video/ivtv/ivtv-gpio.c')
-rw-r--r-- | linux/drivers/media/video/ivtv/ivtv-gpio.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/linux/drivers/media/video/ivtv/ivtv-gpio.c b/linux/drivers/media/video/ivtv/ivtv-gpio.c index bc8f8ca29..676418cba 100644 --- a/linux/drivers/media/video/ivtv/ivtv-gpio.c +++ b/linux/drivers/media/video/ivtv/ivtv-gpio.c @@ -115,8 +115,7 @@ void ivtv_reset_ir_gpio(struct ivtv *itv) curout = (curout & ~0xF) | 1; write_reg(curout, IVTV_REG_GPIO_OUT); /* We could use something else for smaller time */ - current->state = TASK_INTERRUPTIBLE; - schedule_timeout(1); + schedule_timeout_interruptible(msecs_to_jiffies(1)); curout |= 2; write_reg(curout, IVTV_REG_GPIO_OUT); curdir &= ~0x80; @@ -138,13 +137,11 @@ int ivtv_reset_tuner_gpio(enum v4l2_tuner_type mode, void *priv, int ptr) curout &= ~(1 << 12); write_reg(curout, IVTV_REG_GPIO_OUT); - current->state = TASK_INTERRUPTIBLE; - schedule_timeout(1); + schedule_timeout_interruptible(msecs_to_jiffies(1)); curout |= (1 << 12); write_reg(curout, IVTV_REG_GPIO_OUT); - current->state = TASK_INTERRUPTIBLE; - schedule_timeout(1); + schedule_timeout_interruptible(msecs_to_jiffies(1)); return 0; } |