summary refs log tree commit diff stats
path: root/hw/spitz.c
diff options
context:
space:
mode:
authorPaul Brook <paul@codesourcery.com>2009-05-14 22:35:08 +0100
committerPaul Brook <paul@codesourcery.com>2009-05-14 22:35:08 +0100
commit6c0bd6bde2fa09d2235320bc95dca5036ec96337 (patch)
tree4b9ec74a8d4c79bbae897016415d5efd65c42542 /hw/spitz.c
parentd2199005d558962641169178cf668be946026797 (diff)
downloadfocaccia-qemu-6c0bd6bde2fa09d2235320bc95dca5036ec96337.tar.gz
focaccia-qemu-6c0bd6bde2fa09d2235320bc95dca5036ec96337.zip
MAX7310 I2C qdev conversion
Signed-off-by: Paul Brook <paul@codesourcery.com>
Diffstat (limited to 'hw/spitz.c')
-rw-r--r--hw/spitz.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/spitz.c b/hw/spitz.c
index d22174ef9a..943302b08d 100644
--- a/hw/spitz.c
+++ b/hw/spitz.c
@@ -759,8 +759,8 @@ static void spitz_i2c_setup(PXA2xxState *cpu)
 static void spitz_akita_i2c_setup(PXA2xxState *cpu)
 {
     /* Attach a Max7310 to Akita I2C bus.  */
-    i2c_set_slave_address(max7310_init(pxa2xx_i2c_bus(cpu->i2c[0])),
-                    AKITA_MAX_ADDR);
+    i2c_create_slave(pxa2xx_i2c_bus(cpu->i2c[0]), "max7310",
+                     AKITA_MAX_ADDR);
 }
 
 /* Other peripherals */