summary refs log tree commit diff stats
path: root/hw/misc/stm32f4xx_exti.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/misc/stm32f4xx_exti.c')
-rw-r--r--hw/misc/stm32f4xx_exti.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/misc/stm32f4xx_exti.c b/hw/misc/stm32f4xx_exti.c
index 7bd3afcd7c..efd996df94 100644
--- a/hw/misc/stm32f4xx_exti.c
+++ b/hw/misc/stm32f4xx_exti.c
@@ -168,7 +168,7 @@ static void stm32f4xx_exti_class_init(ObjectClass *klass, void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
 
-    dc->reset = stm32f4xx_exti_reset;
+    device_class_set_legacy_reset(dc, stm32f4xx_exti_reset);
     dc->vmsd = &vmstate_stm32f4xx_exti;
 }