summary refs log tree commit diff stats
path: root/hw/ssi/bcm2835_spi.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/ssi/bcm2835_spi.c')
-rw-r--r--hw/ssi/bcm2835_spi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/ssi/bcm2835_spi.c b/hw/ssi/bcm2835_spi.c
index 6ecb42d4e3..ebd8809f7c 100644
--- a/hw/ssi/bcm2835_spi.c
+++ b/hw/ssi/bcm2835_spi.c
@@ -268,7 +268,7 @@ static void bcm2835_spi_class_init(ObjectClass *klass, void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
 
-    dc->reset = bcm2835_spi_reset;
+    device_class_set_legacy_reset(dc, bcm2835_spi_reset);
     dc->realize = bcm2835_spi_realize;
     dc->vmsd = &vmstate_bcm2835_spi;
 }