Skip to content

Commit

Permalink
V4L/DVB (7843): tda18271: fix error handling in tda18271c1_rf_trackin…
Browse files Browse the repository at this point in the history
…g_filter_calibration

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
  • Loading branch information
Michael Krufky authored and Mauro Carvalho Chehab committed May 14, 2008
1 parent 20f4206 commit 10ed0bf
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion drivers/media/common/tuners/tda18271-fe.c
Original file line number Diff line number Diff line change
Expand Up @@ -665,6 +665,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 */
Expand Down Expand Up @@ -713,7 +714,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 */
Expand Down

0 comments on commit 10ed0bf

Please sign in to comment.