]> git.proxmox.com Git - mirror_qemu.git/blobdiff - hw/i386/amd_iommu.h
Use DECLARE_*CHECKER* macros
[mirror_qemu.git] / hw / i386 / amd_iommu.h
index 85860c36dd9277d8983e4b27d6e873e8e8244ce9..fa5feb183c039243313aad277e612a36ef18f179 100644 (file)
@@ -298,8 +298,8 @@ struct irte_ga {
 
 #define TYPE_AMD_IOMMU_DEVICE "amd-iommu"
 typedef struct AMDVIState AMDVIState;
-#define AMD_IOMMU_DEVICE(obj)\
-    OBJECT_CHECK(AMDVIState, (obj), TYPE_AMD_IOMMU_DEVICE)
+DECLARE_INSTANCE_CHECKER(AMDVIState, AMD_IOMMU_DEVICE,
+                         TYPE_AMD_IOMMU_DEVICE)
 
 #define TYPE_AMD_IOMMU_PCI "AMDVI-PCI"