aboutsummaryrefslogtreecommitdiff
path: root/hw/intc/arm_gic_common.c
diff options
context:
space:
mode:
authorAndreas Färber <afaerber@suse.de>2013-07-26 18:57:48 +0200
committerAndreas Färber <afaerber@suse.de>2013-07-29 21:06:57 +0200
commit285b4432da565ebcca0bc5eab1783b77ef3450c0 (patch)
tree76ff939aadadd400621c5ccba70efdea3d72c514 /hw/intc/arm_gic_common.c
parent3e5dd364d933ccc066cbea8620bdc16525e19230 (diff)
arm_gic: QOM cast cleanup
Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'hw/intc/arm_gic_common.c')
-rw-r--r--hw/intc/arm_gic_common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/intc/arm_gic_common.c b/hw/intc/arm_gic_common.c
index 08560f23a3..709b5c2984 100644
--- a/hw/intc/arm_gic_common.c
+++ b/hw/intc/arm_gic_common.c
@@ -110,7 +110,7 @@ static void arm_gic_common_realize(DeviceState *dev, Error **errp)
static void arm_gic_common_reset(DeviceState *dev)
{
- GICState *s = FROM_SYSBUS(GICState, SYS_BUS_DEVICE(dev));
+ GICState *s = ARM_GIC_COMMON(dev);
int i;
memset(s->irq_state, 0, GIC_MAXIRQ * sizeof(gic_irq_state));
for (i = 0 ; i < s->num_cpu; i++) {