From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51675) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WzDNL-0004mq-IF for qemu-devel@nongnu.org; Mon, 23 Jun 2014 19:10:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WzDNK-0002wc-JK for qemu-devel@nongnu.org; Mon, 23 Jun 2014 19:10:11 -0400 From: Peter Maydell Date: Tue, 24 Jun 2014 00:10:09 +0100 Message-Id: <1403565009-16087-1-git-send-email-peter.maydell@linaro.org> Subject: [Qemu-devel] [PATCH] hw/moxie/moxiesim.c: Remove unused moxie_intc_create() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: qemu-trivial@nongnu.org, Anthony Green The function moxie_intc_create() is unused; remove it. Signed-off-by: Peter Maydell --- 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