summaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@web.de>2011-04-10 09:35:42 +0200
committerAurelien Jarno <aurelien@aurel32.net>2011-04-10 14:30:39 +0200
commitd04fba948fb945e467f263e820b1100d657c533d (patch)
treeb2e17bfabc16cc5379fbe2ad93303ca8b5b47c7a /hw
parent23910d3f669d46073b403876e30a7314599633af (diff)
downloadqemu-d04fba948fb945e467f263e820b1100d657c533d.tar.gz
qemu-d04fba948fb945e467f263e820b1100d657c533d.tar.bz2
qemu-d04fba948fb945e467f263e820b1100d657c533d.zip
musicpal: Fix registration of MMIO-less sysbus devices
The proper way to signal that a sysbus devices need no MMIO region is to pass -1 to sysbus_create_simple. Signed-off-by: Jan Kiszka <jan.kiszka@web.de> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'hw')
-rw-r--r--hw/musicpal.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/musicpal.c b/hw/musicpal.c
index d98aa8d03c..52b2931d15 100644
--- a/hw/musicpal.c
+++ b/hw/musicpal.c
@@ -1597,11 +1597,11 @@ static void musicpal_init(ram_addr_t ram_size,
musicpal_misc_init();
dev = sysbus_create_simple("musicpal_gpio", MP_GPIO_BASE, pic[MP_GPIO_IRQ]);
- i2c_dev = sysbus_create_simple("gpio_i2c", 0, NULL);
+ i2c_dev = sysbus_create_simple("gpio_i2c", -1, NULL);
i2c = (i2c_bus *)qdev_get_child_bus(i2c_dev, "i2c");
lcd_dev = sysbus_create_simple("musicpal_lcd", MP_LCD_BASE, NULL);
- key_dev = sysbus_create_simple("musicpal_key", 0, NULL);
+ key_dev = sysbus_create_simple("musicpal_key", -1, NULL);
/* I2C read data */
qdev_connect_gpio_out(i2c_dev, 0,