diff options
| author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2023-01-17 20:30:14 +0100 |
|---|---|---|
| committer | Michael S. Tsirkin <mst@redhat.com> | 2023-01-28 06:21:30 -0500 |
| commit | c45e7619dbe4033dfd525a417edb828af37a892e (patch) | |
| tree | 3267bcff4a93945b808a297a9de4b61302a03bc1 /hw/arm/smmu-common.c | |
| parent | 920c184fa924da2890a1e9050282d01608291a34 (diff) | |
| download | focaccia-qemu-c45e7619dbe4033dfd525a417edb828af37a892e.tar.gz focaccia-qemu-c45e7619dbe4033dfd525a417edb828af37a892e.zip | |
hw: Use TYPE_PCI_BUS definition where appropriate
Use the proper QOM type definition instead of magic string. This also helps during eventual refactor while using git-grep. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-Id: <20230117193014.83502-1-philmd@linaro.org> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: Eric Auger <eric.auger@redhat.com>
Diffstat (limited to 'hw/arm/smmu-common.c')
| -rw-r--r-- | hw/arm/smmu-common.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/arm/smmu-common.c b/hw/arm/smmu-common.c index 54186f31cb..733c964778 100644 --- a/hw/arm/smmu-common.c +++ b/hw/arm/smmu-common.c @@ -535,7 +535,8 @@ static void smmu_base_reset_hold(Object *obj) static Property smmu_dev_properties[] = { DEFINE_PROP_UINT8("bus_num", SMMUState, bus_num, 0), - DEFINE_PROP_LINK("primary-bus", SMMUState, primary_bus, "PCI", PCIBus *), + DEFINE_PROP_LINK("primary-bus", SMMUState, primary_bus, + TYPE_PCI_BUS, PCIBus *), DEFINE_PROP_END_OF_LIST(), }; |