From 5b7f53270a613f897a2ff9ea54284dbdd6057873 Mon Sep 17 00:00:00 2001 From: Juan Quintela Date: Tue, 29 Sep 2009 22:48:26 +0200 Subject: i2c: addresses are load/save as uint8_t values, change types to reflect this Signed-off-by: Juan Quintela Signed-off-by: Anthony Liguori --- hw/mips_malta.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hw/mips_malta.c') diff --git a/hw/mips_malta.c b/hw/mips_malta.c index e09e971b31..900f5ec01e 100644 --- a/hw/mips_malta.c +++ b/hw/mips_malta.c @@ -931,7 +931,7 @@ void mips_malta_init (ram_addr_t ram_size, /* TODO: Populate SPD eeprom data. */ DeviceState *eeprom; eeprom = qdev_create((BusState *)smbus, "smbus-eeprom"); - qdev_prop_set_uint32(eeprom, "address", 0x50 + i); + qdev_prop_set_uint8(eeprom, "address", 0x50 + i); qdev_prop_set_ptr(eeprom, "data", eeprom_buf + (i * 256)); qdev_init(eeprom); } -- cgit v1.2.3