summaryrefslogtreecommitdiff
path: root/hw/intc
diff options
context:
space:
mode:
authorIgor Mammedov <imammedo@redhat.com>2013-04-05 16:37:00 +0200
committerAndreas Färber <afaerber@suse.de>2013-04-16 01:19:46 +0200
commitf16a69f7fce97186fd352c79201b1d0145c02d66 (patch)
tree85fef5248756bd942464065c1fc1b191e917e1b3 /hw/intc
parentf1fc3e66581f638ba72d93c1a4912cfa573dd187 (diff)
downloadqemu-f16a69f7fce97186fd352c79201b1d0145c02d66.tar.gz
ioapic: Replace FROM_SYSBUS() with QOM type cast
Signed-off-by: Igor Mammedov <imammedo@redhat.com> Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'hw/intc')
-rw-r--r--hw/intc/ioapic_common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/intc/ioapic_common.c b/hw/intc/ioapic_common.c
index 42c7adc691..5c5bb3caaa 100644
--- a/hw/intc/ioapic_common.c
+++ b/hw/intc/ioapic_common.c
@@ -59,7 +59,7 @@ static int ioapic_dispatch_post_load(void *opaque, int version_id)
static int ioapic_init_common(SysBusDevice *dev)
{
- IOAPICCommonState *s = FROM_SYSBUS(IOAPICCommonState, dev);
+ IOAPICCommonState *s = IOAPIC_COMMON(dev);
IOAPICCommonClass *info;
static int ioapic_no;