summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/frontends/ves1820.c
diff options
context:
space:
mode:
authorMichael Hunold <devnull@localhost>2003-04-26 11:23:43 +0000
committerMichael Hunold <devnull@localhost>2003-04-26 11:23:43 +0000
commitb80a49661205204e9e4fdd47f887355f543ba4ad (patch)
tree727a36b8683397e630e1a61187668977db74390b /linux/drivers/media/dvb/frontends/ves1820.c
parent3e4b7360a384416bdb35dded255c518c3863759e (diff)
downloadmediapointer-dvb-s2-b80a49661205204e9e4fdd47f887355f543ba4ad.tar.gz
mediapointer-dvb-s2-b80a49661205204e9e4fdd47f887355f543ba4ad.tar.bz2
Revert ddelay() cleanup, discuss this first with Holger.
Diffstat (limited to 'linux/drivers/media/dvb/frontends/ves1820.c')
-rw-r--r--linux/drivers/media/dvb/frontends/ves1820.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/linux/drivers/media/dvb/frontends/ves1820.c b/linux/drivers/media/dvb/frontends/ves1820.c
index bb61fe54c..be3a54f14 100644
--- a/linux/drivers/media/dvb/frontends/ves1820.c
+++ b/linux/drivers/media/dvb/frontends/ves1820.c
@@ -123,9 +123,7 @@ int ves1820_writereg (struct dvb_frontend *fe, u8 reg, u8 data)
"(reg == 0x%02x, val == 0x%02x, ret == %i)\n",
__FUNCTION__, reg, data, ret);
- set_current_state(TASK_INTERRUPTIBLE);
- schedule_timeout (1);
-
+ ddelay(10);
return (ret != 1) ? -EREMOTEIO : 0;
}
@@ -211,8 +209,7 @@ int ves1820_setup_reg0 (struct dvb_frontend *fe, u8 reg0)
* check lock and toggle inversion bit if required...
*/
if (!(ves1820_readreg (fe, 0x11) & 0x08)) {
- set_current_state(TASK_INTERRUPTIBLE);
- schedule_timeout (1);
+ ddelay(10);
if (!(ves1820_readreg (fe, 0x11) & 0x08)) {
reg0 ^= 0x20;
ves1820_writereg (fe, 0x00, reg0 & 0xfe);