summaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb-frontends/tda10071.c
diff options
context:
space:
mode:
authorAntti Palosaari <crope@iki.fi>2015-04-21 16:16:44 +0200
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2015-08-11 12:33:32 +0200
commit4c4acb7a7e81e41901825ca2afb064ada672b39c (patch)
treed666efe128f9a25d3b3aaf3897d0f3cf03caf1f2 /drivers/media/dvb-frontends/tda10071.c
parent[media] tda10071: protect firmware command exec with mutex (diff)
downloadlinux-4c4acb7a7e81e41901825ca2afb064ada672b39c.tar.xz
linux-4c4acb7a7e81e41901825ca2afb064ada672b39c.zip
[media] tda10071: do not get_frontend() when not ready
This is a bit hack, but returning error when driver is not tuned yet causes DVBv5 zap stop polling DVBv5 statistics. Thus return 0 even callback is called during invalid device state. Signed-off-by: Antti Palosaari <crope@iki.fi> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/dvb-frontends/tda10071.c')
-rw-r--r--drivers/media/dvb-frontends/tda10071.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/dvb-frontends/tda10071.c b/drivers/media/dvb-frontends/tda10071.c
index 84fb559e7b3d..5e949170d75d 100644
--- a/drivers/media/dvb-frontends/tda10071.c
+++ b/drivers/media/dvb-frontends/tda10071.c
@@ -717,7 +717,7 @@ static int tda10071_get_frontend(struct dvb_frontend *fe)
u8 buf[5], tmp;
if (!dev->warm || !(dev->fe_status & FE_HAS_LOCK)) {
- ret = -EFAULT;
+ ret = 0;
goto error;
}