summaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb-frontends
diff options
context:
space:
mode:
authorAntti Palosaari2015-04-14 02:00:09 +0200
committerMauro Carvalho Chehab2015-05-30 17:04:16 +0200
commit9240c384f1c7cbf7ba15ccf818f37fad69fd4712 (patch)
tree26730d6aefd69b3c120d2a9a81c5523483b487f7 /drivers/media/dvb-frontends
parent[media] gspca: sn9c2028: Add gain and autogain controls Genius Videocam Live v2 (diff)
downloadkernel-qcow2-linux-9240c384f1c7cbf7ba15ccf818f37fad69fd4712.tar.gz
kernel-qcow2-linux-9240c384f1c7cbf7ba15ccf818f37fad69fd4712.tar.xz
kernel-qcow2-linux-9240c384f1c7cbf7ba15ccf818f37fad69fd4712.zip
[media] m88ds3103: do not return error from get_frontend() when not ready
Do not return error from get_frontend() when status is queried, but the frontend didn't lock yet. The proper behavior is to only update the cache after having a lock. [mchehab@osg.samsung.com: fix the patch description] 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')
-rw-r--r--drivers/media/dvb-frontends/m88ds3103.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/dvb-frontends/m88ds3103.c b/drivers/media/dvb-frontends/m88ds3103.c
index d3d928e1c0ce..03dceb50863f 100644
--- a/drivers/media/dvb-frontends/m88ds3103.c
+++ b/drivers/media/dvb-frontends/m88ds3103.c
@@ -742,7 +742,7 @@ static int m88ds3103_get_frontend(struct dvb_frontend *fe)
dev_dbg(&priv->i2c->dev, "%s:\n", __func__);
if (!priv->warm || !(priv->fe_status & FE_HAS_LOCK)) {
- ret = -EAGAIN;
+ ret = 0;
goto err;
}