diff options
author | Andreas Färber <afaerber@suse.de> | 2012-11-25 22:54:47 +0100 |
---|---|---|
committer | Andreas Färber <afaerber@suse.de> | 2013-06-07 14:55:24 +0200 |
commit | d2628b7d18521dacd3d4d246602e9bb3fc2a43dd (patch) | |
tree | 5133522cc12f037f226839917bdbf441b8f7417a /hw/intc/i8259_common.c | |
parent | 49fdb0c1c42f02ab163206f34fcf59bb0815afa2 (diff) | |
download | qemu-d2628b7d18521dacd3d4d246602e9bb3fc2a43dd.zip qemu-d2628b7d18521dacd3d4d246602e9bb3fc2a43dd.tar.gz qemu-d2628b7d18521dacd3d4d246602e9bb3fc2a43dd.tar.bz2 |
i8259: Convert PICCommonState to use QOM realizefn
Instead of having the parent provide PICCommonClass::init,
let the children override DeviceClass::realize themselves.
This pushes the responsibility of saving and calling the parent's
realizefn to the children.
Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'hw/intc/i8259_common.c')
-rw-r--r-- | hw/intc/i8259_common.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/hw/intc/i8259_common.c b/hw/intc/i8259_common.c index a3dee38..7613547 100644 --- a/hw/intc/i8259_common.c +++ b/hw/intc/i8259_common.c @@ -69,9 +69,6 @@ static int pic_dispatch_post_load(void *opaque, int version_id) static void pic_common_realize(DeviceState *dev, Error **errp) { PICCommonState *s = PIC_COMMON(dev); - PICCommonClass *info = PIC_COMMON_GET_CLASS(s); - - info->init(s); isa_register_ioport(NULL, &s->base_io, s->iobase); if (s->elcr_addr != -1) { |