summary refs log tree commit diff stats
path: root/hw/ssi/sifive_spi.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/ssi/sifive_spi.c')
-rw-r--r--hw/ssi/sifive_spi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/ssi/sifive_spi.c b/hw/ssi/sifive_spi.c
index 1b4a401ca1..08a107792b 100644
--- a/hw/ssi/sifive_spi.c
+++ b/hw/ssi/sifive_spi.c
@@ -338,7 +338,7 @@ static void sifive_spi_class_init(ObjectClass *klass, void *data)
     DeviceClass *dc = DEVICE_CLASS(klass);
 
     device_class_set_props(dc, sifive_spi_properties);
-    dc->reset = sifive_spi_reset;
+    device_class_set_legacy_reset(dc, sifive_spi_reset);
     dc->realize = sifive_spi_realize;
 }