From 005f54ce72329f452475ee280031b897d9533dcf Mon Sep 17 00:00:00 2001 From: Michael Krufky Date: Sat, 22 Mar 2008 18:21:32 -0400 Subject: tda18271: fix comparison bug in tda18271_powerscan From: Michael Krufky Signed-off-by: Michael Krufky --- linux/drivers/media/dvb/frontends/tda18271-fe.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'linux') diff --git a/linux/drivers/media/dvb/frontends/tda18271-fe.c b/linux/drivers/media/dvb/frontends/tda18271-fe.c index 257b32691..66884bb33 100644 --- a/linux/drivers/media/dvb/frontends/tda18271-fe.c +++ b/linux/drivers/media/dvb/frontends/tda18271-fe.c @@ -432,11 +432,7 @@ static int tda18271_powerscan(struct dvb_frontend *fe, msleep(5); /* pll locking */ wait = false; } else -#if 0 - msleep(1); /* pll locking */ -#else udelay(100); /* pll locking */ -#endif /* launch power detection measurement */ tda18271_write_regs(fe, R_EP2, 1); @@ -446,7 +442,7 @@ static int tda18271_powerscan(struct dvb_frontend *fe, count += 200; - if (count < count_limit) + if (count <= count_limit) continue; if (sgn <= 0) -- cgit v1.2.3