diff --git a/hw/i2c/smbus_eeprom.c b/hw/i2c/smbus_eeprom.c index 986a2a1a30..f18aa3de35 100644 --- a/hw/i2c/smbus_eeprom.c +++ b/hw/i2c/smbus_eeprom.c @@ -162,15 +162,3 @@ void smbus_eeprom_init(I2CBus *smbus, int nb_eeprom, smbus_eeprom_init_one(smbus, 0x50 + i, eeprom_buf + (i * 256)); } } - -#ifdef XBOX -void smbus_eeprom_init_single(I2CBus *smbus, int address, - uint8_t *eeprom_buf) -{ - DeviceState *eeprom; - eeprom = qdev_create((BusState *)smbus, "smbus-eeprom"); - qdev_prop_set_uint8(eeprom, "address", address); - qdev_prop_set_ptr(eeprom, "data", eeprom_buf); - qdev_init_nofail(eeprom); -} -#endif diff --git a/hw/xbox/xbox.c b/hw/xbox/xbox.c index b3e75751b8..ab569aeaee 100644 --- a/hw/xbox/xbox.c +++ b/hw/xbox/xbox.c @@ -412,7 +412,7 @@ void xbox_init_common(MachineState *machine, /* smbus devices */ uint8_t *eeprom_buf = g_malloc0(256); memcpy(eeprom_buf, eeprom, 256); - smbus_eeprom_init_single(smbus, 0x54, eeprom_buf); + smbus_eeprom_init_one(smbus, 0x54, eeprom_buf); smbus_xbox_smc_init(smbus, 0x10); smbus_cx25871_init(smbus, 0x45); diff --git a/include/hw/i2c/smbus.h b/include/hw/i2c/smbus.h index e7094113e0..4fdba022c1 100644 --- a/include/hw/i2c/smbus.h +++ b/include/hw/i2c/smbus.h @@ -80,9 +80,4 @@ void smbus_eeprom_init_one(I2CBus *smbus, uint8_t address, uint8_t *eeprom_buf); void smbus_eeprom_init(I2CBus *smbus, int nb_eeprom, const uint8_t *eeprom_spd, int size); -#ifdef XBOX -void smbus_eeprom_init_single(I2CBus *smbus, int address, - uint8_t *eeprom_buf); -#endif - #endif