aboutsummaryrefslogtreecommitdiff
path: root/hw/misc/imx_rngc.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/misc/imx_rngc.c')
-rw-r--r--hw/misc/imx_rngc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/misc/imx_rngc.c b/hw/misc/imx_rngc.c
index ab7775e..0cbf28d 100644
--- a/hw/misc/imx_rngc.c
+++ b/hw/misc/imx_rngc.c
@@ -259,7 +259,7 @@ static void imx_rngc_class_init(ObjectClass *klass, void *data)
DeviceClass *dc = DEVICE_CLASS(klass);
dc->realize = imx_rngc_realize;
- dc->reset = imx_rngc_reset;
+ device_class_set_legacy_reset(dc, imx_rngc_reset);
dc->desc = RNGC_NAME,
dc->vmsd = &vmstate_imx_rngc;
}