]> Git Repo - qemu.git/blobdiff - hw/isa.h
Allow clock_gettime() monotonic clock to be utilized on more OS's
[qemu.git] / hw / isa.h
index 62e89d3bcdb07975315d8d8341daf8a4a9420b2f..82da37c11d288834b037c731164f700f32fd6b9a 100644 (file)
--- a/hw/isa.h
+++ b/hw/isa.h
@@ -5,7 +5,7 @@
 
 #include "exec/ioport.h"
 #include "exec/memory.h"
-#include "qdev.h"
+#include "hw/qdev.h"
 
 #define ISA_NUM_IRQS 16
 
@@ -82,7 +82,7 @@ void isa_register_portio_list(ISADevice *dev, uint16_t start,
 
 static inline ISABus *isa_bus_from_device(ISADevice *d)
 {
-    return DO_UPCAST(ISABus, qbus, d->qdev.parent_bus);
+    return ISA_BUS(qdev_get_parent_bus(DEVICE(d)));
 }
 
 extern hwaddr isa_mem_base;
This page took 0.02176 seconds and 4 git commands to generate.