aboutsummaryrefslogtreecommitdiff
path: root/hw/nseries.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
commitd335681177137c4bf455aabc95a0bd9277085e58 (patch)
tree163f77fc41555557f1d1a6d96e2a567f463f573e /hw/nseries.c
parentcdbe40ca836624a474bf8378b78a715ded36178c (diff)
downloadqemu-d335681177137c4bf455aabc95a0bd9277085e58.zip
qemu-d335681177137c4bf455aabc95a0bd9277085e58.tar.gz
qemu-d335681177137c4bf455aabc95a0bd9277085e58.tar.bz2
TWL92230 qdev conversion
Signed-off-by: Paul Brook <paul@codesourcery.com>
Diffstat (limited to 'hw/nseries.c')
-rw-r--r--hw/nseries.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/hw/nseries.c b/hw/nseries.c
index b7a1c6b..daf1b8b 100644
--- a/hw/nseries.c
+++ b/hw/nseries.c
@@ -186,10 +186,8 @@ static void n8x0_i2c_setup(struct n800_s *s)
s->i2c = omap_i2c_bus(s->cpu->i2c[0]);
/* Attach a menelaus PM chip */
- i2c_set_slave_address(
- twl92230_init(s->i2c,
- s->cpu->irq[0][OMAP_INT_24XX_SYS_NIRQ]),
- N8X0_MENELAUS_ADDR);
+ dev = i2c_create_slave(s->i2c, "twl92230", N8X0_MENELAUS_ADDR);
+ qdev_connect_gpio_out(dev, 3, s->cpu->irq[0][OMAP_INT_24XX_SYS_NIRQ]);
/* Attach a TMP105 PM chip (A0 wired to ground) */
dev = i2c_create_slave(s->i2c, "tmp105", N8X0_TMP105_ADDR);