From: Antti Palosaari Date: Tue, 14 Apr 2015 00:00:09 +0000 (-0300) Subject: [media] m88ds3103: do not return error from get_frontend() when not ready X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9240c384f1c7cbf7ba15ccf818f37fad69fd4712;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [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 Signed-off-by: Mauro Carvalho Chehab --- 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; }