summary refs log tree commit diff stats
path: root/hw/ssi/pnv_spi.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/ssi/pnv_spi.c')
-rw-r--r--hw/ssi/pnv_spi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/ssi/pnv_spi.c b/hw/ssi/pnv_spi.c
index c1297ab733..9e7207bf7c 100644
--- a/hw/ssi/pnv_spi.c
+++ b/hw/ssi/pnv_spi.c
@@ -1245,7 +1245,7 @@ static void pnv_spi_class_init(ObjectClass *klass, void *data)
 
     dc->desc = "PowerNV SPI";
     dc->realize = pnv_spi_realize;
-    dc->reset = do_reset;
+    device_class_set_legacy_reset(dc, do_reset);
     device_class_set_props(dc, pnv_spi_properties);
 }