[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 18/22] hw/arm_sysctl: Drop legacy init function
From: |
Peter Maydell |
Subject: |
[Qemu-devel] [PATCH 18/22] hw/arm_sysctl: Drop legacy init function |
Date: |
Fri, 17 Feb 2012 11:29:33 +0000 |
Drop the legacy init function arm_sysctl_init(), since it has no
users left any more. This allows us to drop the awkward '1' from
the actual device init function.
Signed-off-by: Peter Maydell <address@hidden>
Acked-by: Andreas Färber <address@hidden>
---
hw/arm_sysctl.c | 16 ++--------------
hw/primecell.h | 3 ---
2 files changed, 2 insertions(+), 17 deletions(-)
diff --git a/hw/arm_sysctl.c b/hw/arm_sysctl.c
index 149c639..5f1237b 100644
--- a/hw/arm_sysctl.c
+++ b/hw/arm_sysctl.c
@@ -378,7 +378,7 @@ static void arm_sysctl_gpio_set(void *opaque, int line, int
level)
}
}
-static int arm_sysctl_init1(SysBusDevice *dev)
+static int arm_sysctl_init(SysBusDevice *dev)
{
arm_sysctl_state *s = FROM_SYSBUS(arm_sysctl_state, dev);
@@ -389,18 +389,6 @@ static int arm_sysctl_init1(SysBusDevice *dev)
return 0;
}
-/* Legacy helper function. */
-void arm_sysctl_init(uint32_t base, uint32_t sys_id, uint32_t proc_id)
-{
- DeviceState *dev;
-
- dev = qdev_create(NULL, "realview_sysctl");
- qdev_prop_set_uint32(dev, "sys_id", sys_id);
- qdev_init_nofail(dev);
- qdev_prop_set_uint32(dev, "proc_id", proc_id);
- sysbus_mmio_map(sysbus_from_qdev(dev), 0, base);
-}
-
static Property arm_sysctl_properties[] = {
DEFINE_PROP_UINT32("sys_id", arm_sysctl_state, sys_id, 0),
DEFINE_PROP_UINT32("proc_id", arm_sysctl_state, proc_id, 0),
@@ -412,7 +400,7 @@ static void arm_sysctl_class_init(ObjectClass *klass, void
*data)
DeviceClass *dc = DEVICE_CLASS(klass);
SysBusDeviceClass *k = SYS_BUS_DEVICE_CLASS(klass);
- k->init = arm_sysctl_init1;
+ k->init = arm_sysctl_init;
dc->reset = arm_sysctl_reset;
dc->vmsd = &vmstate_arm_sysctl;
dc->props = arm_sysctl_properties;
diff --git a/hw/primecell.h b/hw/primecell.h
index de7d6f2..e709ad3 100644
--- a/hw/primecell.h
+++ b/hw/primecell.h
@@ -8,9 +8,6 @@
/* pl080.c */
void *pl080_init(uint32_t base, qemu_irq irq, int nchannels);
-/* arm_sysctl.c */
-void arm_sysctl_init(uint32_t base, uint32_t sys_id, uint32_t proc_id);
-
/* arm_sysctl GPIO lines */
#define ARM_SYSCTL_GPIO_MMC_WPROT 0
#define ARM_SYSCTL_GPIO_MMC_CARDIN 1
--
1.7.1
- [Qemu-devel] [PULL 00/22] arm-devs queue, Peter Maydell, 2012/02/17
- [Qemu-devel] [PATCH 04/22] ARM: exynos4210: PWM support., Peter Maydell, 2012/02/17
- [Qemu-devel] [PATCH 11/22] hw/a15mpcore.c: Add Cortex-A15 private peripheral model, Peter Maydell, 2012/02/17
- [Qemu-devel] [PATCH 12/22] hw/vexpress.c: Make motherboard peripheral memory map table-driven, Peter Maydell, 2012/02/17
- [Qemu-devel] [PATCH 19/22] hw/primecell.h: Remove obsolete pl080_init() declaration, Peter Maydell, 2012/02/17
- [Qemu-devel] [PATCH 13/22] hw/vexpress.c: Move secondary CPU boot code to SRAM, Peter Maydell, 2012/02/17
- [Qemu-devel] [PATCH 10/22] MAINTAINERS: Add maintainers for Exynos SOC., Peter Maydell, 2012/02/17
- [Qemu-devel] [PATCH 16/22] arm_boot: Pass base address of GIC CPU interface, not whole GIC, Peter Maydell, 2012/02/17
- [Qemu-devel] [PATCH 18/22] hw/arm_sysctl: Drop legacy init function,
Peter Maydell <=
- [Qemu-devel] [PATCH 07/22] hw/lan9118: Add basic 16-bit mode support., Peter Maydell, 2012/02/17
- [Qemu-devel] [PATCH 09/22] Exynos4210: added display controller implementation, Peter Maydell, 2012/02/17
- [Qemu-devel] [PATCH 03/22] ARM: exynos4210: UART support, Peter Maydell, 2012/02/17
- [Qemu-devel] [PATCH 01/22] ARM: exynos4210: IRQ subsystem support., Peter Maydell, 2012/02/17
- [Qemu-devel] [PATCH 20/22] Remove unnecessary includes of primecell.h, Peter Maydell, 2012/02/17
- [Qemu-devel] [PATCH 15/22] hw/vexpress.c: Instantiate the motherboard CLCD, Peter Maydell, 2012/02/17
- [Qemu-devel] [PATCH 17/22] hw/vexpress.c: Add vexpress-a15 machine, Peter Maydell, 2012/02/17
- [Qemu-devel] [PATCH 22/22] hw/pl031: Actually raise interrupt on timer expiry, Peter Maydell, 2012/02/17
- [Qemu-devel] [PATCH 06/22] ARM: exynos4210: MCT support., Peter Maydell, 2012/02/17
- [Qemu-devel] [PATCH 08/22] hw/exynos4210.c: Add LAN support for SMDKC210., Peter Maydell, 2012/02/17