diff options
| author | Peter Maydell <peter.maydell@linaro.org> | 2018-08-24 13:17:45 +0100 |
|---|---|---|
| committer | Peter Maydell <peter.maydell@linaro.org> | 2018-08-24 13:17:45 +0100 |
| commit | 275ff67f40b60592d5c4e709ead1fe3e41b2ece5 (patch) | |
| tree | 3031ccdf30124323bd5b3b85ad363bae6b97cecc /hw | |
| parent | 66d9aa790fa9d5c251dcbd5b8ff1db79e04dc06d (diff) | |
| download | focaccia-qemu-275ff67f40b60592d5c4e709ead1fe3e41b2ece5.tar.gz focaccia-qemu-275ff67f40b60592d5c4e709ead1fe3e41b2ece5.zip | |
hw/ssi/pl022: Don't directly call vmstate_register()
Use the DeviceState vmsd pointer rather than calling vmstate_register() directly. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Message-id: 20180820141116.9118-18-peter.maydell@linaro.org Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'hw')
| -rw-r--r-- | hw/ssi/pl022.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/ssi/pl022.c b/hw/ssi/pl022.c index 0b5f90b857..c998953706 100644 --- a/hw/ssi/pl022.c +++ b/hw/ssi/pl022.c @@ -279,7 +279,6 @@ static int pl022_init(SysBusDevice *sbd) sysbus_init_mmio(sbd, &s->iomem); sysbus_init_irq(sbd, &s->irq); s->ssi = ssi_create_bus(dev, "ssi"); - vmstate_register(dev, -1, &vmstate_pl022, s); return 0; } @@ -290,6 +289,7 @@ static void pl022_class_init(ObjectClass *klass, void *data) sdc->init = pl022_init; dc->reset = pl022_reset; + dc->vmsd = &vmstate_pl022; } static const TypeInfo pl022_info = { |