~dannf/qemu-linaro/qemu-highbank-ppa

« back to all changes in this revision

Viewing changes to hw/wdt_ib700.c

  • Committer: Steve Langasek
  • Date: 2012-03-15 21:13:19 UTC
  • mfrom: (0.1.15)
  • Revision ID: steve.langasek@canonical.com-20120315211319-f1j3ot1ihx30b2s9
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
122
122
 
123
123
static void wdt_ib700_class_init(ObjectClass *klass, void *data)
124
124
{
 
125
    DeviceClass *dc = DEVICE_CLASS(klass);
125
126
    ISADeviceClass *ic = ISA_DEVICE_CLASS(klass);
126
127
    ic->init = wdt_ib700_init;
 
128
    dc->reset = wdt_ib700_reset;
 
129
    dc->vmsd = &vmstate_ib700;
127
130
}
128
131
 
129
 
static DeviceInfo wdt_ib700_info = {
130
 
    .name  = "ib700",
131
 
    .size  = sizeof(IB700State),
132
 
    .vmsd  = &vmstate_ib700,
133
 
    .reset = wdt_ib700_reset,
134
 
    .class_init       = wdt_ib700_class_init,
 
132
static TypeInfo wdt_ib700_info = {
 
133
    .name          = "ib700",
 
134
    .parent        = TYPE_ISA_DEVICE,
 
135
    .instance_size = sizeof(IB700State),
 
136
    .class_init    = wdt_ib700_class_init,
135
137
};
136
138
 
137
 
static void wdt_ib700_register_devices(void)
 
139
static void wdt_ib700_register_types(void)
138
140
{
139
141
    watchdog_add_model(&model);
140
 
    isa_qdev_register(&wdt_ib700_info);
 
142
    type_register_static(&wdt_ib700_info);
141
143
}
142
144
 
143
 
device_init(wdt_ib700_register_devices);
 
145
type_init(wdt_ib700_register_types)