aboutsummaryrefslogtreecommitdiff
path: root/hw/input
diff options
context:
space:
mode:
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>2022-07-12 22:52:24 +0100
committerMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>2022-07-18 19:28:46 +0100
commit4040ee5bdd4af7ebba48fe6f106e48ede633a9c1 (patch)
tree112fb4c0e5cea45f70b016441301b16d1de4f027 /hw/input
parent17b8013acbfacdbb5906719b4df54c362ef182af (diff)
downloadqemu-4040ee5bdd4af7ebba48fe6f106e48ede633a9c1.zip
qemu-4040ee5bdd4af7ebba48fe6f106e48ede633a9c1.tar.gz
qemu-4040ee5bdd4af7ebba48fe6f106e48ede633a9c1.tar.bz2
lasips2: remove the qdev base property and the lasips2_properties array
The base property was only needed for use by vmstate_register() in order to preserve migration compatibility. Now that the lasips2 migration state is registered through the DeviceClass vmsd field, the base property and also the lasips2_properties array can be removed completely as they are no longer required. Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Tested-by: Helge Deller <deller@gmx.de> Acked-by: Helge Deller <deller@gmx.de> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Message-Id: <20220712215251.7944-14-mark.cave-ayland@ilande.co.uk> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Diffstat (limited to 'hw/input')
-rw-r--r--hw/input/lasips2.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/hw/input/lasips2.c b/hw/input/lasips2.c
index d4fa248..40f77ba 100644
--- a/hw/input/lasips2.c
+++ b/hw/input/lasips2.c
@@ -255,12 +255,11 @@ static void lasips2_set_mouse_irq(void *opaque, int n, int level)
lasips2_update_irq(port->parent);
}
-LASIPS2State *lasips2_initfn(hwaddr base, qemu_irq irq)
+LASIPS2State *lasips2_initfn(qemu_irq irq)
{
DeviceState *dev;
dev = qdev_new(TYPE_LASIPS2);
- qdev_prop_set_uint64(dev, "base", base);
sysbus_realize_and_unref(SYS_BUS_DEVICE(dev), &error_fatal);
sysbus_connect_irq(SYS_BUS_DEVICE(dev), 0, irq);
@@ -307,18 +306,12 @@ static void lasips2_init(Object *obj)
"ps2-mouse-input-irq", 1);
}
-static Property lasips2_properties[] = {
- DEFINE_PROP_UINT64("base", LASIPS2State, base, UINT64_MAX),
- DEFINE_PROP_END_OF_LIST(),
-};
-
static void lasips2_class_init(ObjectClass *klass, void *data)
{
DeviceClass *dc = DEVICE_CLASS(klass);
dc->realize = lasips2_realize;
dc->vmsd = &vmstate_lasips2;
- device_class_set_props(dc, lasips2_properties);
set_bit(DEVICE_CATEGORY_INPUT, dc->categories);
}