summaryrefslogtreecommitdiffstats
path: root/include/hw/acpi/vmgenid.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/hw/acpi/vmgenid.h')
-rw-r--r--include/hw/acpi/vmgenid.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/hw/acpi/vmgenid.h b/include/hw/acpi/vmgenid.h
index 0286fc0f09..86cd1da605 100644
--- a/include/hw/acpi/vmgenid.h
+++ b/include/hw/acpi/vmgenid.h
@@ -17,7 +17,8 @@
*/
typedef struct VmGenIdState VmGenIdState;
-#define VMGENID(obj) OBJECT_CHECK(VmGenIdState, (obj), VMGENID_DEVICE)
+DECLARE_INSTANCE_CHECKER(VmGenIdState, VMGENID,
+ VMGENID_DEVICE)
struct VmGenIdState {
DeviceClass parent_obj;