hw/arm: Use TYPE_ARM_SMMUV3

Use the macro instead of two explicit string literals.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Message-id: 20230124232059.4017615-1-richard.henderson@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
Richard Henderson 2023-01-24 13:20:59 -10:00 committed by Peter Maydell
parent bf4460a8d9
commit a431ab0e4e
2 changed files with 3 additions and 2 deletions

View File

@ -29,6 +29,7 @@
#include "exec/hwaddr.h" #include "exec/hwaddr.h"
#include "kvm_arm.h" #include "kvm_arm.h"
#include "hw/arm/boot.h" #include "hw/arm/boot.h"
#include "hw/arm/smmuv3.h"
#include "hw/block/flash.h" #include "hw/block/flash.h"
#include "hw/boards.h" #include "hw/boards.h"
#include "hw/ide/internal.h" #include "hw/ide/internal.h"
@ -574,7 +575,7 @@ static void create_smmu(const SBSAMachineState *sms, PCIBus *bus)
DeviceState *dev; DeviceState *dev;
int i; int i;
dev = qdev_new("arm-smmuv3"); dev = qdev_new(TYPE_ARM_SMMUV3);
object_property_set_link(OBJECT(dev), "primary-bus", OBJECT(bus), object_property_set_link(OBJECT(dev), "primary-bus", OBJECT(bus),
&error_abort); &error_abort);

View File

@ -1343,7 +1343,7 @@ static void create_smmu(const VirtMachineState *vms,
return; return;
} }
dev = qdev_new("arm-smmuv3"); dev = qdev_new(TYPE_ARM_SMMUV3);
object_property_set_link(OBJECT(dev), "primary-bus", OBJECT(bus), object_property_set_link(OBJECT(dev), "primary-bus", OBJECT(bus),
&error_abort); &error_abort);