.. | .. |
---|
1148 | 1148 | v4l2_dbg(1, debug, sd, "reg 0x41 0x%x, chip version (reg 0x00) 0x%x\n", |
---|
1149 | 1149 | ad9389b_rd(sd, 0x41), state->chip_revision); |
---|
1150 | 1150 | |
---|
1151 | | - state->edid_i2c_client = i2c_new_dummy(client->adapter, (0x7e>>1)); |
---|
1152 | | - if (state->edid_i2c_client == NULL) { |
---|
| 1151 | + state->edid_i2c_client = i2c_new_dummy_device(client->adapter, (0x7e >> 1)); |
---|
| 1152 | + if (IS_ERR(state->edid_i2c_client)) { |
---|
1153 | 1153 | v4l2_err(sd, "failed to register edid i2c client\n"); |
---|
1154 | | - err = -ENOMEM; |
---|
| 1154 | + err = PTR_ERR(state->edid_i2c_client); |
---|
1155 | 1155 | goto err_entity; |
---|
1156 | 1156 | } |
---|
1157 | 1157 | |
---|