[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 10/24] hw/sparc: Remove empty Property lists
From: |
Richard Henderson |
Subject: |
[PATCH 10/24] hw/sparc: Remove empty Property lists |
Date: |
Sun, 15 Dec 2024 21:50:55 -0600 |
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
hw/sparc/sun4m.c | 5 -----
hw/sparc64/sun4u.c | 5 -----
2 files changed, 10 deletions(-)
diff --git a/hw/sparc/sun4m.c b/hw/sparc/sun4m.c
index d52e6a7213..7ec346533e 100644
--- a/hw/sparc/sun4m.c
+++ b/hw/sparc/sun4m.c
@@ -732,15 +732,10 @@ static void prom_realize(DeviceState *ds, Error **errp)
sysbus_init_mmio(dev, &s->prom);
}
-static Property prom_properties[] = {
- {/* end of property list */},
-};
-
static void prom_class_init(ObjectClass *klass, void *data)
{
DeviceClass *dc = DEVICE_CLASS(klass);
- device_class_set_props(dc, prom_properties);
dc->realize = prom_realize;
}
diff --git a/hw/sparc64/sun4u.c b/hw/sparc64/sun4u.c
index 7088ac273e..05b8c7369e 100644
--- a/hw/sparc64/sun4u.c
+++ b/hw/sparc64/sun4u.c
@@ -471,15 +471,10 @@ static void prom_realize(DeviceState *ds, Error **errp)
sysbus_init_mmio(dev, &s->prom);
}
-static Property prom_properties[] = {
- {/* end of property list */},
-};
-
static void prom_class_init(ObjectClass *klass, void *data)
{
DeviceClass *dc = DEVICE_CLASS(klass);
- device_class_set_props(dc, prom_properties);
dc->realize = prom_realize;
}
--
2.43.0
- [PATCH 03/24] target/ppc: Remove empty property list, (continued)
- [PATCH 03/24] target/ppc: Remove empty property list, Richard Henderson, 2024/12/15
- [PATCH 05/24] hw/pci-host/astro: Remove empty Property list, Richard Henderson, 2024/12/15
- [PATCH 02/24] hw/ide: Constify sysbus_ahci_properties, Richard Henderson, 2024/12/15
- [PATCH 07/24] hw/tricore: Remove empty Property lists, Richard Henderson, 2024/12/15
- [PATCH 04/24] target/s390x: Use s390x_cpu_properties for system mode only, Richard Henderson, 2024/12/15
- [PATCH 06/24] hw/ppc: Only register spapr_nvdimm_properties if CONFIG_LIBPMEM, Richard Henderson, 2024/12/15
- [PATCH 10/24] hw/sparc: Remove empty Property lists,
Richard Henderson <=
- [PATCH 08/24] hw/s390x: Remove empty Property lists, Richard Henderson, 2024/12/15
- [PATCH 09/24] hw/xen: Remove empty Property lists, Richard Henderson, 2024/12/15
- [PATCH 12/24] include/hw/qdev-core: Detect most empty Property lists at compile time, Richard Henderson, 2024/12/15
- [PATCH 13/24] hw/core: Introduce device_class_set_props_n, Richard Henderson, 2024/12/15
- [PATCH 11/24] hw/virtio: Remove empty Property lists, Richard Henderson, 2024/12/15
- [PATCH 15/24] hw/scsi/megasas: Use device_class_set_props_n, Richard Henderson, 2024/12/15
- [PATCH 16/24] hw/arm/armsse: Use device_class_set_props_n, Richard Henderson, 2024/12/15
- [PATCH 17/24] rust/qemu-api: Use device_class_set_props_n, Richard Henderson, 2024/12/15
- [PATCH 14/24] migration: Use device_class_set_props_n, Richard Henderson, 2024/12/15