aboutsummaryrefslogtreecommitdiff
path: root/hw/ssi/stm32f2xx_spi.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/ssi/stm32f2xx_spi.c')
-rw-r--r--hw/ssi/stm32f2xx_spi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/ssi/stm32f2xx_spi.c b/hw/ssi/stm32f2xx_spi.c
index a37139f..ea9b74a 100644
--- a/hw/ssi/stm32f2xx_spi.c
+++ b/hw/ssi/stm32f2xx_spi.c
@@ -206,7 +206,7 @@ static void stm32f2xx_spi_class_init(ObjectClass *klass, void *data)
{
DeviceClass *dc = DEVICE_CLASS(klass);
- dc->reset = stm32f2xx_spi_reset;
+ device_class_set_legacy_reset(dc, stm32f2xx_spi_reset);
dc->vmsd = &vmstate_stm32f2xx_spi;
}