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: pull-nvme-20200902~6053^2~5 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=f16a69f7fce97186fd352c79201b1d0145c02d66;p=qemu-nvme.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 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;