aboutsummaryrefslogtreecommitdiff
path: root/hw/misc/allwinner-sramc.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/misc/allwinner-sramc.c')
-rw-r--r--hw/misc/allwinner-sramc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/misc/allwinner-sramc.c b/hw/misc/allwinner-sramc.c
index cf10ca8..a20b0b4 100644
--- a/hw/misc/allwinner-sramc.c
+++ b/hw/misc/allwinner-sramc.c
@@ -139,7 +139,7 @@ static void allwinner_sramc_class_init(ObjectClass *klass, void *data)
{
DeviceClass *dc = DEVICE_CLASS(klass);
- dc->reset = allwinner_sramc_reset;
+ device_class_set_legacy_reset(dc, allwinner_sramc_reset);
dc->vmsd = &allwinner_sramc_vmstate;
}