[media] tda10071: do not get_frontend() when not ready
authorAntti Palosaari <crope@iki.fi>
Tue, 21 Apr 2015 14:16:44 +0000 (11:16 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 11 Aug 2015 10:33:32 +0000 (07:33 -0300)
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>
drivers/media/dvb-frontends/tda10071.c

index 84fb559e7b3d5c69e46ad771d4745866791ceaa9..5e949170d75d2d4823b4e5c8eac1afeacf0c0664 100644 (file)
@@ -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;
        }