diff options
author | Juan Quintela <quintela@redhat.com> | 2009-09-29 22:48:26 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-10-05 09:32:37 -0500 |
commit | 5b7f53270a613f897a2ff9ea54284dbdd6057873 (patch) | |
tree | e60fe857aa9fa050007a7417a674904e68e52cf1 /hw/mips_malta.c | |
parent | c7cc172d207d4719a21c8c2a874919eaf2da1273 (diff) | |
download | qemu-5b7f53270a613f897a2ff9ea54284dbdd6057873.zip |
i2c: addresses are load/save as uint8_t values, change types to reflect this
Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/mips_malta.c')
-rw-r--r-- | hw/mips_malta.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |