@@ -156,7 +156,7 @@ static void palmte_onoff_gpios(void *opaque, int line, int level)
}
}
-static void palmte_gpio_setup(struct omap_mpu_state_s *cpu)
+static qemu_irq *palmte_gpio_setup(struct omap_mpu_state_s *cpu)
{
qemu_irq *misc_gpio;
@@ -183,6 +183,8 @@ static void palmte_gpio_setup(struct omap_mpu_state_s *cpu)
qemu_irq_raise(omap_mpuio_in_get(cpu->mpuio)[6]);
qemu_irq_raise(omap_mpuio_in_get(cpu->mpuio)[7]);
qemu_irq_raise(omap_mpuio_in_get(cpu->mpuio)[11]);
+
+ return misc_gpio;
}
static struct arm_boot_info palmte_binfo = {
@@ -236,7 +238,7 @@ static void palmte_init(MachineState *machine)
qemu_add_kbd_event_handler(palmte_button_event, mpu);
- palmte_gpio_setup(mpu);
+ machine->irqs = palmte_gpio_setup(mpu);
/* Setup initial (reset) machine state */
if (nb_option_roms) {