/* Return: 0 on success or corresponding error on failure.  */
static int __maybe_unused ti_i2c_eeprom_init(int i2c_bus, int dev_addr)
/* Return: 0 on success or corresponding error on failure.  */
static int __maybe_unused ti_i2c_eeprom_init(int i2c_bus, int dev_addr)
{
	int rc;
	if (i2c_bus >= 0) {
		rc = i2c_set_bus_num(i2c_bus);
		if (rc)
			return rc;
	}
	return i2c_probe(dev_addr);
}