summaryrefslogtreecommitdiff
path: root/include/hw/timer
diff options
context:
space:
mode:
authorAndreas Färber <afaerber@suse.de>2012-11-25 18:47:58 +0100
committerAndreas Färber <afaerber@suse.de>2013-06-07 14:55:24 +0200
commita15d09127b104d1c35fc22bdd65263fe62462b30 (patch)
tree6e1c6bc2916319b3c581442907c1c8b680b6f378 /include/hw/timer
parent58cd986422d7353e7fac56969ac59daab3cdca67 (diff)
downloadqemu-a15d09127b104d1c35fc22bdd65263fe62462b30.tar.gz
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);