aboutsummaryrefslogtreecommitdiff
path: root/hw/lm32.h
diff options
context:
space:
mode:
Diffstat (limited to 'hw/lm32.h')
-rw-r--r--hw/lm32.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/lm32.h b/hw/lm32.h
index 4194c9a813..236686ef2b 100644
--- a/hw/lm32.h
+++ b/hw/lm32.h
@@ -11,7 +11,7 @@ static inline DeviceState *lm32_pic_init(qemu_irq cpu_irq)
dev = qdev_create(NULL, "lm32-pic");
qdev_init_nofail(dev);
- d = sysbus_from_qdev(dev);
+ d = SYS_BUS_DEVICE(dev);
sysbus_connect_irq(d, 0, cpu_irq);
return dev;