diff options
author | Paul Brook <paul@codesourcery.com> | 2009-05-26 14:56:11 +0100 |
---|---|---|
committer | Paul Brook <paul@codesourcery.com> | 2009-05-26 14:56:11 +0100 |
commit | 067a3ddc8876cee8451d6f690a051e413a593fdc (patch) | |
tree | 1e0d067b7784874397b189947fde6f05dc3434ad /hw/mpcore.c | |
parent | c2fb26379e8bd0586f3ff054538217377f86635f (diff) |
Remove qdev irq sink handling
We have both IRQ sinks and GPIO inputs. These are in principle exactly
the same thing, so remove the former.
Signed-off-by: Paul Brook <paul@codesourcery.com>
Diffstat (limited to 'hw/mpcore.c')
-rw-r--r-- | hw/mpcore.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/hw/mpcore.c b/hw/mpcore.c index 6df9a91ad3..a5eddd9cc8 100644 --- a/hw/mpcore.c +++ b/hw/mpcore.c @@ -320,17 +320,17 @@ static void realview_mpcore_init(SysBusDevice *dev) priv = sysbus_create_simple("arm11mpcore_priv", MPCORE_PRIV_BASE, NULL); sysbus_pass_irq(dev, sysbus_from_qdev(priv)); for (i = 0; i < 32; i++) { - s->cpuic[i] = qdev_get_irq_sink(priv, i); + s->cpuic[i] = qdev_get_gpio_in(priv, i); } /* ??? IRQ routing is hardcoded to "normal" mode. */ for (n = 0; n < 4; n++) { gic = sysbus_create_simple("realview_gic", 0x10040000 + n * 0x10000, s->cpuic[10 + n]); for (i = 0; i < 64; i++) { - s->rvic[n][i] = qdev_get_irq_sink(gic, i); + s->rvic[n][i] = qdev_get_gpio_in(gic, i); } } - qdev_init_irq_sink(&dev->qdev, mpcore_rirq_set_irq, 64); + qdev_init_gpio_in(&dev->qdev, mpcore_rirq_set_irq, 64); } static void mpcore_register_devices(void) |