summaryrefslogtreecommitdiffstats
path: root/include/hw/timer
diff options
context:
space:
mode:
authorAndreas Färber2012-11-25 18:47:58 +0100
committerAndreas Färber2013-06-07 14:55:24 +0200
commita15d09127b104d1c35fc22bdd65263fe62462b30 (patch)
tree6e1c6bc2916319b3c581442907c1c8b680b6f378 /include/hw/timer
parentkvm/i8254: QOM'ify some more (diff)
downloadqemu-a15d09127b104d1c35fc22bdd65263fe62462b30.tar.gz
qemu-a15d09127b104d1c35fc22bdd65263fe62462b30.tar.xz
qemu-a15d09127b104d1c35fc22bdd65263fe62462b30.zip
i8254: Convert PITCommonState to QOM realizefn
Instead of having the parent provide PITCommonClass::init, let the children override DeviceClass::realize themselves. This pushes the responsibility for saving and calling the parent's realizefn to the children. Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'include/hw/timer')
-rw-r--r--include/hw/timer/i8254_internal.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/hw/timer/i8254_internal.h b/include/hw/timer/i8254_internal.h
index e0cff0cf5a..61a1bfbc4e 100644
--- a/include/hw/timer/i8254_internal.h
+++ b/include/hw/timer/i8254_internal.h
@@ -68,7 +68,6 @@ typedef struct PITCommonState {
typedef struct PITCommonClass {
ISADeviceClass parent_class;
- int (*init)(PITCommonState *s);
void (*set_channel_gate)(PITCommonState *s, PITChannelState *sc, int val);
void (*get_channel_info)(PITCommonState *s, PITChannelState *sc,
PITChannelInfo *info);