Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 232198
b: refs/heads/master
c: 9d700a0
h: refs/heads/master
v: v3
  • Loading branch information
Mauro Carvalho Chehab committed Jan 19, 2011
1 parent 953b4b8 commit 2acfb83
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 47ab285a960ac456506297c93322ab13c3522f5a
refs/heads/master: 9d700a0696ae241380e8ca833bb5a358620d33f6
11 changes: 6 additions & 5 deletions trunk/drivers/media/common/tuners/tda8290.c
Original file line number Diff line number Diff line change
Expand Up @@ -754,11 +754,10 @@ struct dvb_frontend *tda829x_attach(struct dvb_frontend *fe,
sizeof(struct analog_demod_ops));
}

if ((!(cfg) || (TDA829X_PROBE_TUNER == cfg->probe_tuner)) &&
(tda829x_find_tuner(fe) < 0)) {
memset(&fe->ops.analog_ops, 0, sizeof(struct analog_demod_ops));

goto fail;
if (!(cfg) || (TDA829X_PROBE_TUNER == cfg->probe_tuner)) {
tda8295_power(fe, 1);
if (tda829x_find_tuner(fe) < 0)
goto fail;
}

switch (priv->ver) {
Expand Down Expand Up @@ -803,6 +802,8 @@ struct dvb_frontend *tda829x_attach(struct dvb_frontend *fe,
return fe;

fail:
memset(&fe->ops.analog_ops, 0, sizeof(struct analog_demod_ops));

tda829x_release(fe);
return NULL;
}
Expand Down

0 comments on commit 2acfb83

Please sign in to comment.