aboutsummaryrefslogtreecommitdiff
path: root/hw/timer/sifive_pwm.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/timer/sifive_pwm.c')
-rw-r--r--hw/timer/sifive_pwm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/timer/sifive_pwm.c b/hw/timer/sifive_pwm.c
index e8610c3..4602fc1 100644
--- a/hw/timer/sifive_pwm.c
+++ b/hw/timer/sifive_pwm.c
@@ -446,7 +446,7 @@ static void sifive_pwm_class_init(ObjectClass *klass, void *data)
{
DeviceClass *dc = DEVICE_CLASS(klass);
- dc->reset = sifive_pwm_reset;
+ device_class_set_legacy_reset(dc, sifive_pwm_reset);
device_class_set_props(dc, sifive_pwm_properties);
dc->vmsd = &vmstate_sifive_pwm;
dc->realize = sifive_pwm_realize;