summaryrefslogtreecommitdiff
path: root/drivers/media/common/tuners/tda8290.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/common/tuners/tda8290.c')
-rw-r--r--drivers/media/common/tuners/tda8290.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/media/common/tuners/tda8290.c b/drivers/media/common/tuners/tda8290.c
index 5f889c1b91d0..11ea4e0f9c04 100644
--- a/drivers/media/common/tuners/tda8290.c
+++ b/drivers/media/common/tuners/tda8290.c
@@ -755,8 +755,11 @@ struct dvb_frontend *tda829x_attach(struct dvb_frontend *fe,
}
if ((!(cfg) || (TDA829X_PROBE_TUNER == cfg->probe_tuner)) &&
- (tda829x_find_tuner(fe) < 0))
+ (tda829x_find_tuner(fe) < 0)) {
+ memset(&fe->ops.analog_ops, 0, sizeof(struct analog_demod_ops));
+
goto fail;
+ }
switch (priv->ver) {
case TDA8290: