Skip to content

Commit

Permalink
[media] adv7511: fix error return code in adv7511_probe()
Browse files Browse the repository at this point in the history
Fix to return error code -ENOMEM from the i2c client register error
handling case instead of 0, as done elsewhere in this function.

Signed-off-by: Wei Yongjun <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
  • Loading branch information
weiyj authored and mchehab committed Aug 24, 2016
1 parent 69d4a52 commit b956fb2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/media/i2c/adv7511.c
Original file line number Diff line number Diff line change
Expand Up @@ -1898,6 +1898,7 @@ static int adv7511_probe(struct i2c_client *client, const struct i2c_device_id *
state->i2c_cec_addr >> 1);
if (state->i2c_cec == NULL) {
v4l2_err(sd, "failed to register cec i2c client\n");
err = -ENOMEM;
goto err_unreg_edid;
}
adv7511_wr(sd, 0xe2, 0x00); /* power up cec section */
Expand Down

0 comments on commit b956fb2

Please sign in to comment.