summary refs log tree commit diff stats
path: root/hw/riscv/riscv-iommu-pci.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/riscv/riscv-iommu-pci.c')
-rw-r--r--hw/riscv/riscv-iommu-pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/riscv/riscv-iommu-pci.c b/hw/riscv/riscv-iommu-pci.c
index a795464803..d93cf7521b 100644
--- a/hw/riscv/riscv-iommu-pci.c
+++ b/hw/riscv/riscv-iommu-pci.c
@@ -184,7 +184,7 @@ static void riscv_iommu_pci_reset_hold(Object *obj, ResetType type)
     trace_riscv_iommu_pci_reset_hold(type);
 }
 
-static void riscv_iommu_pci_class_init(ObjectClass *klass, void *data)
+static void riscv_iommu_pci_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
     PCIDeviceClass *k = PCI_DEVICE_CLASS(klass);