]> Git Repo - qemu.git/blobdiff - hw/lm32.h
PPC: Fix dma interrupt
[qemu.git] / hw / lm32.h
index 4194c9a813e7dd5611161f29cd143ba330ae693e..236686ef2b554efe846cce86730c1502d35b533a 100644 (file)
--- 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;
This page took 0.024948 seconds and 4 git commands to generate.