aboutsummaryrefslogtreecommitdiff
path: root/hw/gpio/bcm2835_gpio.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/gpio/bcm2835_gpio.c')
-rw-r--r--hw/gpio/bcm2835_gpio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/gpio/bcm2835_gpio.c b/hw/gpio/bcm2835_gpio.c
index 6bd50bb0b6..5a5f1df5e8 100644
--- a/hw/gpio/bcm2835_gpio.c
+++ b/hw/gpio/bcm2835_gpio.c
@@ -325,7 +325,7 @@ static void bcm2835_gpio_class_init(ObjectClass *klass, void *data)
dc->vmsd = &vmstate_bcm2835_gpio;
dc->realize = &bcm2835_gpio_realize;
- dc->reset = &bcm2835_gpio_reset;
+ device_class_set_legacy_reset(dc, bcm2835_gpio_reset);
}
static const TypeInfo bcm2835_gpio_info = {