From e91830b1212bdfb216c3561fcba58bab180be093 Mon Sep 17 00:00:00 2001 From: Eduardo Habkost Date: Wed, 26 Aug 2020 14:43:29 -0400 Subject: [PATCH] amd_iommu: Use TYPE_AMD_IOMMU_PCI constant This will make future conversion to use OBJECT_DECLARE* easier. Signed-off-by: Eduardo Habkost Reviewed-by: Li Qiang Reviewed-by: Michael S. Tsirkin Message-Id: <20200826184334.4120620-4-ehabkost@redhat.com> Signed-off-by: Eduardo Habkost --- hw/i386/amd_iommu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/i386/amd_iommu.c b/hw/i386/amd_iommu.c index 087f601666..18411f1dec 100644 --- a/hw/i386/amd_iommu.c +++ b/hw/i386/amd_iommu.c @@ -1622,7 +1622,7 @@ static const TypeInfo amdvi = { }; static const TypeInfo amdviPCI = { - .name = "AMDVI-PCI", + .name = TYPE_AMD_IOMMU_PCI, .parent = TYPE_PCI_DEVICE, .instance_size = sizeof(AMDVIPCIState), .interfaces = (InterfaceInfo[]) {