aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb-frontends/si2168.c
diff options
context:
space:
mode:
authorLuis Alves <ljalvs@gmail.com>2014-07-17 19:38:08 (GMT)
committerMauro Carvalho Chehab <m.chehab@samsung.com>2014-07-22 00:24:14 (GMT)
commit4d6efc7a96c126f2b21ffd4edad9b11144a0336a (patch)
treeb1c95a0e5c6f4f96b5436401f54083ef9c9281a9 /drivers/media/dvb-frontends/si2168.c
parent43911776faf04599f48732403959d510bde03815 (diff)
[media] si2168: Fix i2c_add_mux_adapter return value
In case of failure the return value was always 0. Return proper error code (ENODEV) instead. Signed-off-by: Luis Alves <ljalvs@gmail.com> Signed-off-by: Antti Palosaari <crope@iki.fi> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'drivers/media/dvb-frontends/si2168.c')
-rw-r--r--drivers/media/dvb-frontends/si2168.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/media/dvb-frontends/si2168.c b/drivers/media/dvb-frontends/si2168.c
index 303a441..3e3fd2a 100644
--- a/drivers/media/dvb-frontends/si2168.c
+++ b/drivers/media/dvb-frontends/si2168.c
@@ -640,8 +640,10 @@ static int si2168_probe(struct i2c_client *client,
/* create mux i2c adapter for tuner */
s->adapter = i2c_add_mux_adapter(client->adapter, &client->dev, s,
0, 0, 0, si2168_select, si2168_deselect);
- if (s->adapter == NULL)
+ if (s->adapter == NULL) {
+ ret = -ENODEV;
goto err;
+ }
/* create dvb_frontend */
memcpy(&s->fe.ops, &si2168_ops, sizeof(struct dvb_frontend_ops));

Privacy Policy