diff options
Diffstat (limited to 'drivers/media/i2c/ov5693.c')
-rw-r--r-- | drivers/media/i2c/ov5693.c | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/drivers/media/i2c/ov5693.c b/drivers/media/i2c/ov5693.c index 1f2479800..97eb74bb6 100644 --- a/drivers/media/i2c/ov5693.c +++ b/drivers/media/i2c/ov5693.c | |||
@@ -934,11 +934,13 @@ static int ov5693_otp_setup(struct ov5693 *priv) | |||
934 | return -ENODEV; | 934 | return -ENODEV; |
935 | 935 | ||
936 | for (i = 0; i < OV5693_OTP_NUM_BANKS; i++) { | 936 | for (i = 0; i < OV5693_OTP_NUM_BANKS; i++) { |
937 | ov5693_read_otp_bank(priv, | 937 | err = ov5693_read_otp_bank(priv, |
938 | &otp_buf[i * OV5693_OTP_BANK_SIZE], | 938 | &otp_buf[i * OV5693_OTP_BANK_SIZE], |
939 | i, | 939 | i, |
940 | OV5693_OTP_BANK_START_ADDR, | 940 | OV5693_OTP_BANK_START_ADDR, |
941 | OV5693_OTP_BANK_SIZE); | 941 | OV5693_OTP_BANK_SIZE); |
942 | if (err) | ||
943 | return -ENODEV; | ||
942 | } | 944 | } |
943 | 945 | ||
944 | ctrl = v4l2_ctrl_find(&priv->ctrl_handler, V4L2_CID_OTP_DATA); | 946 | ctrl = v4l2_ctrl_find(&priv->ctrl_handler, V4L2_CID_OTP_DATA); |
@@ -971,11 +973,13 @@ static int ov5693_fuse_id_setup(struct ov5693 *priv) | |||
971 | if (err) | 973 | if (err) |
972 | return -ENODEV; | 974 | return -ENODEV; |
973 | 975 | ||
974 | ov5693_read_otp_bank(priv, | 976 | err = ov5693_read_otp_bank(priv, |
975 | &fuse_id[0], | 977 | &fuse_id[0], |
976 | OV5693_FUSE_ID_OTP_BANK, | 978 | OV5693_FUSE_ID_OTP_BANK, |
977 | OV5693_FUSE_ID_OTP_START_ADDR, | 979 | OV5693_FUSE_ID_OTP_START_ADDR, |
978 | OV5693_FUSE_ID_SIZE); | 980 | OV5693_FUSE_ID_SIZE); |
981 | if (err) | ||
982 | return -ENODEV; | ||
979 | 983 | ||
980 | ctrl = v4l2_ctrl_find(&priv->ctrl_handler, V4L2_CID_FUSE_ID); | 984 | ctrl = v4l2_ctrl_find(&priv->ctrl_handler, V4L2_CID_FUSE_ID); |
981 | if (!ctrl) { | 985 | if (!ctrl) { |