summary refs log tree commit diff stats
path: root/hw/adc/stm32f2xx_adc.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/adc/stm32f2xx_adc.c')
-rw-r--r--hw/adc/stm32f2xx_adc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/adc/stm32f2xx_adc.c b/hw/adc/stm32f2xx_adc.c
index e9df6ea53f..e3b21f9077 100644
--- a/hw/adc/stm32f2xx_adc.c
+++ b/hw/adc/stm32f2xx_adc.c
@@ -288,7 +288,7 @@ static void stm32f2xx_adc_class_init(ObjectClass *klass, void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
 
-    dc->reset = stm32f2xx_adc_reset;
+    device_class_set_legacy_reset(dc, stm32f2xx_adc_reset);
     dc->vmsd = &vmstate_stm32f2xx_adc;
 }