diff options
| author | Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> | 2011-02-25 12:13:38 +0100 |
|---|---|---|
| committer | Andrzej Zaborowski <balrog@zabor.org> | 2011-02-25 12:13:38 +0100 |
| commit | e1f8c729fa890c67bb4532f22c22ace6fb0e1aaf (patch) | |
| tree | 71a7936f73ce841cc41dbd90457ab87044c9fdbc /hw/mainstone.c | |
| parent | 3e1dbc3bd40338f19a2469feabd5f1dc5a4f5a9d (diff) | |
| download | focaccia-qemu-e1f8c729fa890c67bb4532f22c22ace6fb0e1aaf.tar.gz focaccia-qemu-e1f8c729fa890c67bb4532f22c22ace6fb0e1aaf.zip | |
pxa2xx_pic: update to use qdev
Use qdev/sysbus framework to handle pxa2xx-pic. Instead of exposing IRQs via array, reference them via qdev_get_gpio_in(). Patch has been modified by the committer. Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> Signed-off-by: Andrzej Zaborowski <andrew.zaborowski@intel.com>
Diffstat (limited to 'hw/mainstone.c')
| -rw-r--r-- | hw/mainstone.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/mainstone.c b/hw/mainstone.c index aec8d34b4f..4eabdb99d9 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, - cpu->pic[PXA2XX_PIC_GPIO_0]); + qdev_get_gpio_in(cpu->pic, PXA2XX_PIC_GPIO_0)); /* setup keypad */ printf("map addr %p\n", &map); |