From 13c9bfbfbb3e20d5b58c7760d3338e7a3948ecd8 Mon Sep 17 00:00:00 2001 From: Peter Crosthwaite Date: Tue, 25 Feb 2014 16:40:04 -0800 Subject: xilinx: Inline usages of xilinx_intc_create() Inline these usages. Converts these init to at least a semi-recent QOM styling. Signed-off-by: Peter Crosthwaite Signed-off-by: Edgar E. Iglesias --- include/hw/xilinx.h | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'include/hw') diff --git a/include/hw/xilinx.h b/include/hw/xilinx.h index 9d6debe4d0..02400cd854 100644 --- a/include/hw/xilinx.h +++ b/include/hw/xilinx.h @@ -7,19 +7,6 @@ #include "hw/stream.h" #include "net/net.h" -static inline DeviceState * -xilinx_intc_create(hwaddr base, qemu_irq irq, int kind_of_intr) -{ - DeviceState *dev; - - dev = qdev_create(NULL, "xlnx.xps-intc"); - qdev_prop_set_uint32(dev, "kind-of-intr", kind_of_intr); - qdev_init_nofail(dev); - sysbus_mmio_map(SYS_BUS_DEVICE(dev), 0, base); - sysbus_connect_irq(SYS_BUS_DEVICE(dev), 0, irq); - return dev; -} - /* OPB Timer/Counter. */ static inline DeviceState * xilinx_timer_create(hwaddr base, qemu_irq irq, int oto, int freq) -- cgit v1.2.3