summary refs log tree commit diff stats
path: root/hw/gpio/pca9554.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/gpio/pca9554.c')
-rw-r--r--hw/gpio/pca9554.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/gpio/pca9554.c b/hw/gpio/pca9554.c
index 7d10a64ba7..68cc9e1de4 100644
--- a/hw/gpio/pca9554.c
+++ b/hw/gpio/pca9554.c
@@ -305,7 +305,7 @@ static void pca9554_class_init(ObjectClass *klass, void *data)
     k->recv = pca9554_recv;
     k->send = pca9554_send;
     dc->realize = pca9554_realize;
-    dc->reset = pca9554_reset;
+    device_class_set_legacy_reset(dc, pca9554_reset);
     dc->vmsd = &pca9554_vmstate;
     device_class_set_props(dc, pca9554_properties);
 }