|
@@ -183,8 +183,8 @@ static int ivtv_i2c_new_ir(struct ivtv *itv, u32 hw, const char *type, u8 addr)
|
|
return -1;
|
|
return -1;
|
|
memset(&info, 0, sizeof(struct i2c_board_info));
|
|
memset(&info, 0, sizeof(struct i2c_board_info));
|
|
strlcpy(info.type, type, I2C_NAME_SIZE);
|
|
strlcpy(info.type, type, I2C_NAME_SIZE);
|
|
- return i2c_new_probed_device(adap, &info, addr_list) == NULL
|
|
|
|
- ? -1 : 0;
|
|
|
|
|
|
+ return i2c_new_probed_device(adap, &info, addr_list, NULL)
|
|
|
|
+ == NULL ? -1 : 0;
|
|
}
|
|
}
|
|
|
|
|
|
/* Only allow one IR receiver to be registered per board */
|
|
/* Only allow one IR receiver to be registered per board */
|
|
@@ -221,7 +221,8 @@ static int ivtv_i2c_new_ir(struct ivtv *itv, u32 hw, const char *type, u8 addr)
|
|
info.platform_data = init_data;
|
|
info.platform_data = init_data;
|
|
strlcpy(info.type, type, I2C_NAME_SIZE);
|
|
strlcpy(info.type, type, I2C_NAME_SIZE);
|
|
|
|
|
|
- return i2c_new_probed_device(adap, &info, addr_list) == NULL ? -1 : 0;
|
|
|
|
|
|
+ return i2c_new_probed_device(adap, &info, addr_list, NULL) == NULL ?
|
|
|
|
+ -1 : 0;
|
|
}
|
|
}
|
|
|
|
|
|
/* Instantiate the IR receiver device using probing -- undesirable */
|
|
/* Instantiate the IR receiver device using probing -- undesirable */
|
|
@@ -249,7 +250,7 @@ struct i2c_client *ivtv_i2c_new_ir_legacy(struct ivtv *itv)
|
|
|
|
|
|
memset(&info, 0, sizeof(struct i2c_board_info));
|
|
memset(&info, 0, sizeof(struct i2c_board_info));
|
|
strlcpy(info.type, "ir_video", I2C_NAME_SIZE);
|
|
strlcpy(info.type, "ir_video", I2C_NAME_SIZE);
|
|
- return i2c_new_probed_device(&itv->i2c_adap, &info, addr_list);
|
|
|
|
|
|
+ return i2c_new_probed_device(&itv->i2c_adap, &info, addr_list, NULL);
|
|
}
|
|
}
|
|
|
|
|
|
int ivtv_i2c_register(struct ivtv *itv, unsigned idx)
|
|
int ivtv_i2c_register(struct ivtv *itv, unsigned idx)
|