Revision 18be5187 hw/max111x.c
b/hw/max111x.c | ||
---|---|---|
121 | 121 |
return 0; |
122 | 122 |
} |
123 | 123 |
|
124 |
static int max111x_iid = 0; |
|
125 |
|
|
126 | 124 |
static struct max111x_s *max111x_init(qemu_irq cb) |
127 | 125 |
{ |
128 | 126 |
struct max111x_s *s; |
... | ... | |
143 | 141 |
s->input[7] = 0x80; |
144 | 142 |
s->com = 0; |
145 | 143 |
|
146 |
register_savevm("max111x", max111x_iid ++, 0, |
|
147 |
max111x_save, max111x_load, s); |
|
144 |
register_savevm("max111x", -1, 0, max111x_save, max111x_load, s); |
|
148 | 145 |
|
149 | 146 |
return s; |
150 | 147 |
} |
Also available in: Unified diff