aboutsummaryrefslogtreecommitdiff
path: root/include/hw/platform-bus.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/hw/platform-bus.h')
-rw-r--r--include/hw/platform-bus.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/hw/platform-bus.h b/include/hw/platform-bus.h
index 33745a418e..0d035e1b71 100644
--- a/include/hw/platform-bus.h
+++ b/include/hw/platform-bus.h
@@ -23,12 +23,13 @@
*/
#include "hw/sysbus.h"
+#include "qom/object.h"
typedef struct PlatformBusDevice PlatformBusDevice;
#define TYPE_PLATFORM_BUS_DEVICE "platform-bus-device"
-#define PLATFORM_BUS_DEVICE(obj) \
- OBJECT_CHECK(PlatformBusDevice, (obj), TYPE_PLATFORM_BUS_DEVICE)
+DECLARE_INSTANCE_CHECKER(PlatformBusDevice, PLATFORM_BUS_DEVICE,
+ TYPE_PLATFORM_BUS_DEVICE)
struct PlatformBusDevice {
/*< private >*/