From: Antti Palosaari Date: Tue, 21 Apr 2015 14:16:44 +0000 (-0300) Subject: [media] tda10071: do not get_frontend() when not ready X-Git-Tag: firefly_0821_release~176^2~795^2~280 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=4c4acb7a7e81e41901825ca2afb064ada672b39c;p=firefly-linux-kernel-4.4.55.git [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 Signed-off-by: Mauro Carvalho Chehab --- 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; }