From b80a49661205204e9e4fdd47f887355f543ba4ad Mon Sep 17 00:00:00 2001 From: Michael Hunold Date: Sat, 26 Apr 2003 11:23:43 +0000 Subject: Revert ddelay() cleanup, discuss this first with Holger. --- linux/drivers/media/dvb/frontends/ves1820.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'linux/drivers/media/dvb/frontends/ves1820.c') 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); -- cgit v1.2.3