diff --git a/hw/mainstone.c b/hw/mainstone.c index 4eabdb99d91d6e738a52d09b9a21877e3fe58da5..8970dd8e41ce88534c40babe7cd91b1f6e832387 100644 --- a/hw/mainstone.c +++ b/hw/mainstone.c @@ -140,7 +140,7 @@ static void mainstone_common_init(ram_addr_t ram_size, } mst_irq = sysbus_create_simple("mainstone-fpga", MST_FPGA_PHYS, - qdev_get_gpio_in(cpu->pic, PXA2XX_PIC_GPIO_0)); + qdev_get_gpio_in(cpu->gpio, 0)); /* setup keypad */ printf("map addr %p\n", &map);