summaryrefslogtreecommitdiff
path: root/hw/i386
diff options
context:
space:
mode:
authorAndreas Färber <afaerber@suse.de>2013-07-27 16:30:47 +0200
committerAndreas Färber <afaerber@suse.de>2013-07-29 21:07:02 +0200
commitb311963126a18d7f4c5390c4c094a5f015f0fca6 (patch)
tree2dcb4431b09f1b1367e76fb1d28a9082324df0a6 /hw/i386
parent253eacc2fb1f592af9de64c5a9a2157fbf8ccb0d (diff)
kvm/ioapic: QOM cast cleanup
Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'hw/i386')
-rw-r--r--hw/i386/kvm/ioapic.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/i386/kvm/ioapic.c b/hw/i386/kvm/ioapic.c
index 688cb5cab3..f11a540825 100644
--- a/hw/i386/kvm/ioapic.c
+++ b/hw/i386/kvm/ioapic.c
@@ -112,7 +112,7 @@ static void kvm_ioapic_put(IOAPICCommonState *s)
static void kvm_ioapic_reset(DeviceState *dev)
{
- IOAPICCommonState *s = DO_UPCAST(IOAPICCommonState, busdev.qdev, dev);
+ IOAPICCommonState *s = IOAPIC_COMMON(dev);
ioapic_reset_common(dev);
kvm_ioapic_put(s);
@@ -131,7 +131,7 @@ static void kvm_ioapic_init(IOAPICCommonState *s, int instance_no)
{
memory_region_init_reservation(&s->io_memory, NULL, "kvm-ioapic", 0x1000);
- qdev_init_gpio_in(&s->busdev.qdev, kvm_ioapic_set_irq, IOAPIC_NUM_PINS);
+ qdev_init_gpio_in(DEVICE(s), kvm_ioapic_set_irq, IOAPIC_NUM_PINS);
}
static Property kvm_ioapic_properties[] = {