aboutsummaryrefslogtreecommitdiff
path: root/hw/misc/bcm2835_thermal.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/misc/bcm2835_thermal.c')
-rw-r--r--hw/misc/bcm2835_thermal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/misc/bcm2835_thermal.c b/hw/misc/bcm2835_thermal.c
index 0c49c088a7..1c1b0671cc 100644
--- a/hw/misc/bcm2835_thermal.c
+++ b/hw/misc/bcm2835_thermal.c
@@ -118,7 +118,7 @@ static void bcm2835_thermal_class_init(ObjectClass *klass, void *data)
DeviceClass *dc = DEVICE_CLASS(klass);
dc->realize = bcm2835_thermal_realize;
- dc->reset = bcm2835_thermal_reset;
+ device_class_set_legacy_reset(dc, bcm2835_thermal_reset);
dc->vmsd = &bcm2835_thermal_vmstate;
}