From 067a3ddc8876cee8451d6f690a051e413a593fdc Mon Sep 17 00:00:00 2001 From: Paul Brook Date: Tue, 26 May 2009 14:56:11 +0100 Subject: 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 --- hw/etraxfs.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'hw/etraxfs.c') diff --git a/hw/etraxfs.c b/hw/etraxfs.c index f82e1cd0fd..1e200553e7 100644 --- a/hw/etraxfs.c +++ b/hw/etraxfs.c @@ -90,10 +90,10 @@ void bareetraxfs_init (ram_addr_t ram_size, /* FIXME: Is there a proper way to signal vectors to the CPU core? */ qdev_set_prop_ptr(dev, "interrupt_vector", &env->interrupt_vector); for (i = 0; i < 30; i++) { - irq[i] = qdev_get_irq_sink(dev, i); + irq[i] = qdev_get_gpio_in(dev, i); } - nmi[0] = qdev_get_irq_sink(dev, 30); - nmi[1] = qdev_get_irq_sink(dev, 31); + nmi[0] = qdev_get_gpio_in(dev, 30); + nmi[1] = qdev_get_gpio_in(dev, 31); etraxfs_dmac = etraxfs_dmac_init(env, 0x30000000, 10); for (i = 0; i < 10; i++) { -- cgit 1.4.1