* [Qemu-devel] [PATCH] hw/moxie/moxiesim.c: Remove unused moxie_intc_create()
@ 2014-06-23 23:10 Peter Maydell
0 siblings, 0 replies; only message in thread
From: Peter Maydell @ 2014-06-23 23:10 UTC (permalink / raw)
To: qemu-devel; +Cc: qemu-trivial, Anthony Green
The function moxie_intc_create() is unused; remove it.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
---
In any case the recommendation these days would be to do this
kind of simple create-configure-init-wire-up inline in the
machine model code...
hw/moxie/moxiesim.c | 13 -------------
1 file changed, 13 deletions(-)
diff --git a/hw/moxie/moxiesim.c b/hw/moxie/moxiesim.c
index f4357cf..430f841 100644
--- a/hw/moxie/moxiesim.c
+++ b/hw/moxie/moxiesim.c
@@ -94,19 +94,6 @@ static void main_cpu_reset(void *opaque)
cpu_reset(CPU(cpu));
}
-static inline DeviceState *
-moxie_intc_create(hwaddr base, qemu_irq irq, int kind_of_intr)
-{
- DeviceState *dev;
-
- dev = qdev_create(NULL, "moxie,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;
-}
-
static void moxiesim_init(MachineState *machine)
{
MoxieCPU *cpu = NULL;
--
2.0.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2014-06-23 23:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-23 23:10 [Qemu-devel] [PATCH] hw/moxie/moxiesim.c: Remove unused moxie_intc_create() Peter Maydell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).