From: Igor Mammedov Date: Fri, 5 Apr 2013 14:37:00 +0000 (+0200) Subject: ioapic: Replace FROM_SYSBUS() with QOM type cast X-Git-Tag: v1.5.0-rc0~252^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f16a69f7fce97186fd352c79201b1d0145c02d66;p=thirdparty%2Fqemu.git ioapic: Replace FROM_SYSBUS() with QOM type cast Signed-off-by: Igor Mammedov Signed-off-by: Andreas Färber --- diff --git a/hw/intc/ioapic_common.c b/hw/intc/ioapic_common.c index 42c7adc6911..5c5bb3caaa1 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;