aboutsummaryrefslogtreecommitdiff
path: root/hw/gpio/sifive_gpio.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/gpio/sifive_gpio.c')
-rw-r--r--hw/gpio/sifive_gpio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/gpio/sifive_gpio.c b/hw/gpio/sifive_gpio.c
index 995a43c..e85c040 100644
--- a/hw/gpio/sifive_gpio.c
+++ b/hw/gpio/sifive_gpio.c
@@ -378,7 +378,7 @@ static void sifive_gpio_class_init(ObjectClass *klass, void *data)
device_class_set_props(dc, sifive_gpio_properties);
dc->vmsd = &vmstate_sifive_gpio;
dc->realize = sifive_gpio_realize;
- dc->reset = sifive_gpio_reset;
+ device_class_set_legacy_reset(dc, sifive_gpio_reset);
dc->desc = "SiFive GPIO";
}