diff options
author | Andreas Färber <afaerber@suse.de> | 2013-04-27 22:18:40 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2013-04-29 08:27:47 -0500 |
commit | 29bb5317cb7b23422b2612025d56055bbf0bbd02 (patch) | |
tree | aaa01076cc271286ac563c63310e5fdd2ee38ee0 /hw/i386/kvm | |
parent | eb1440e7ec522784f4351bb5e88436cc3cd9abd7 (diff) |
i8259: QOM cleanups
Eliminate DO_UPCAST() for PICCommonState. Prepares for ISA realizefn.
Also give the i8259_common type registration functions unique names
while at it.
Signed-off-by: Andreas Färber <afaerber@suse.de>
Signed-off-by: Andreas Färber <afaerber@suse.de>
Message-id: 1367093935-29091-6-git-send-email-afaerber@suse.de
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/i386/kvm')
-rw-r--r-- | hw/i386/kvm/i8259.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/i386/kvm/i8259.c b/hw/i386/kvm/i8259.c index ea77be8638..d961ecabbd 100644 --- a/hw/i386/kvm/i8259.c +++ b/hw/i386/kvm/i8259.c @@ -82,7 +82,7 @@ static void kvm_pic_put(PICCommonState *s) static void kvm_pic_reset(DeviceState *dev) { - PICCommonState *s = DO_UPCAST(PICCommonState, dev.qdev, dev); + PICCommonState *s = PIC_COMMON(dev); s->elcr = 0; pic_reset_common(s); |