summaryrefslogtreecommitdiff
path: root/linux/drivers
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@linuxtv.org>2008-05-04 16:26:47 -0400
committerMichael Krufky <mkrufky@linuxtv.org>2008-05-04 16:26:47 -0400
commit71b667bfafcc16721f19d2546ff8b03b7fe20c5b (patch)
treecda69d3e891420fcd5d199ba3ef380fb147180f2 /linux/drivers
parent2ba71a7d6966f5c647046c556d9bb6cb3145b5fd (diff)
downloadmediapointer-dvb-s2-71b667bfafcc16721f19d2546ff8b03b7fe20c5b.tar.gz
mediapointer-dvb-s2-71b667bfafcc16721f19d2546ff8b03b7fe20c5b.tar.bz2
tda18271: fix error handling in tda18271c1_rf_tracking_filter_calibration
From: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Diffstat (limited to 'linux/drivers')
-rw-r--r--linux/drivers/media/common/tuners/tda18271-fe.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/linux/drivers/media/common/tuners/tda18271-fe.c b/linux/drivers/media/common/tuners/tda18271-fe.c
index e4fbbaa72..d963ce4b6 100644
--- a/linux/drivers/media/common/tuners/tda18271-fe.c
+++ b/linux/drivers/media/common/tuners/tda18271-fe.c
@@ -666,6 +666,7 @@ static int tda18271c1_rf_tracking_filter_calibration(struct dvb_frontend *fe,
{
struct tda18271_priv *priv = fe->tuner_priv;
unsigned char *regs = priv->tda18271_regs;
+ int ret;
u32 N = 0;
/* calculate bp filter */
@@ -714,7 +715,10 @@ static int tda18271c1_rf_tracking_filter_calibration(struct dvb_frontend *fe,
tda18271_calc_main_pll(fe, N);
- tda18271_write_regs(fe, R_EP3, 11);
+ ret = tda18271_write_regs(fe, R_EP3, 11);
+ if (ret < 0)
+ return ret;
+
msleep(5); /* RF tracking filter calibration initialization */
/* search for K,M,CO for RF calibration */