From: Eduardo Habkost Date: Wed, 26 Aug 2020 18:43:29 +0000 (-0400) Subject: amd_iommu: Use TYPE_AMD_IOMMU_PCI constant X-Git-Tag: v5.2.0-rc0~152^2~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e91830b1212bdfb216c3561fcba58bab180be093;p=thirdparty%2Fqemu.git 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 --- diff --git a/hw/i386/amd_iommu.c b/hw/i386/amd_iommu.c index 087f6016662..18411f1deca 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[]) {