hw/char: Drop disable property of Diva GSP card
The "disable" property is not used, so drop it. Suggested-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Helge Deller <deller@gmx.de> Message-ID: <20260307195243.8813-3-deller@kernel.org> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Helge Deller committed
Mar 7, 2026 at 20:52 UTC
27c64fa59d1b14c4656908e1dfca49482a96df61
1 file changed
+2
-5
hw/char/diva-gsp.c
+2
-5
@@ -51,7 +51,6 @@ typedef struct PCIDivaSerialState {
51
SerialState state[PCI_SERIAL_MAX_PORTS];
52
uint32_t level[PCI_SERIAL_MAX_PORTS];
53
qemu_irq *irqs;
54
- bool disable;
54
} PCIDivaSerialState;
55
56
static void diva_pci_exit(PCIDevice *dev)
@@ -159,20 +158,18 @@ static void diva_pci_realize(PCIDevice *dev, Error **errp)
158
159
static const VMStateDescription vmstate_pci_diva = {
160
.name = "pci-diva-serial",
162
- .version_id = 1,
163
- .minimum_version_id = 1,
161
+ .version_id = 2,
162
+ .minimum_version_id = 2,
163
.fields = (const VMStateField[]) {
164
VMSTATE_PCI_DEVICE(dev, PCIDivaSerialState),
165
VMSTATE_STRUCT_ARRAY(state, PCIDivaSerialState, PCI_SERIAL_MAX_PORTS,
166
0, vmstate_serial, SerialState),
167
VMSTATE_UINT32_ARRAY(level, PCIDivaSerialState, PCI_SERIAL_MAX_PORTS),
169
- VMSTATE_BOOL(disable, PCIDivaSerialState),
168
VMSTATE_END_OF_LIST()
169
}
170
};
171
172
static const Property diva_serial_properties[] = {
175
- DEFINE_PROP_BOOL("disable", PCIDivaSerialState, disable, false),
173
DEFINE_PROP_CHR("chardev1", PCIDivaSerialState, state[0].chr),
174
DEFINE_PROP_CHR("chardev2", PCIDivaSerialState, state[1].chr),
175
DEFINE_PROP_CHR("chardev3", PCIDivaSerialState, state[2].chr),