diff options
Diffstat (limited to 'drivers/media/common')
-rw-r--r-- | drivers/media/common/tuners/mxl5007t.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/media/common/tuners/mxl5007t.c b/drivers/media/common/tuners/mxl5007t.c index e2a2cf2d31fc..abb38326a07f 100644 --- a/drivers/media/common/tuners/mxl5007t.c +++ b/drivers/media/common/tuners/mxl5007t.c | |||
@@ -582,8 +582,9 @@ fail: | |||
582 | static int mxl5007t_get_status(struct dvb_frontend *fe, u32 *status) | 582 | static int mxl5007t_get_status(struct dvb_frontend *fe, u32 *status) |
583 | { | 583 | { |
584 | struct mxl5007t_state *state = fe->tuner_priv; | 584 | struct mxl5007t_state *state = fe->tuner_priv; |
585 | int rf_locked, ref_locked; | 585 | int rf_locked, ref_locked, ret; |
586 | int ret; | 586 | |
587 | *status = 0; | ||
587 | 588 | ||
588 | if (fe->ops.i2c_gate_ctrl) | 589 | if (fe->ops.i2c_gate_ctrl) |
589 | fe->ops.i2c_gate_ctrl(fe, 1); | 590 | fe->ops.i2c_gate_ctrl(fe, 1); |
@@ -593,6 +594,9 @@ static int mxl5007t_get_status(struct dvb_frontend *fe, u32 *status) | |||
593 | goto fail; | 594 | goto fail; |
594 | mxl_debug("%s%s", rf_locked ? "rf locked " : "", | 595 | mxl_debug("%s%s", rf_locked ? "rf locked " : "", |
595 | ref_locked ? "ref locked" : ""); | 596 | ref_locked ? "ref locked" : ""); |
597 | |||
598 | if ((rf_locked) || (ref_locked)) | ||
599 | *status |= TUNER_STATUS_LOCKED; | ||
596 | fail: | 600 | fail: |
597 | if (fe->ops.i2c_gate_ctrl) | 601 | if (fe->ops.i2c_gate_ctrl) |
598 | fe->ops.i2c_gate_ctrl(fe, 0); | 602 | fe->ops.i2c_gate_ctrl(fe, 0); |