Revision 81a322d4 hw/integratorcp.c
b/hw/integratorcp.c | ||
---|---|---|
227 | 227 |
integratorcm_write |
228 | 228 |
}; |
229 | 229 |
|
230 |
static void integratorcm_init(SysBusDevice *dev)
|
|
230 |
static int integratorcm_init(SysBusDevice *dev)
|
|
231 | 231 |
{ |
232 | 232 |
int iomemtype; |
233 | 233 |
integratorcm_state *s = FROM_SYSBUS(integratorcm_state, dev); |
... | ... | |
260 | 260 |
sysbus_init_mmio(dev, 0x00800000, iomemtype); |
261 | 261 |
integratorcm_do_remap(s, 1); |
262 | 262 |
/* ??? Save/restore. */ |
263 |
return 0; |
|
263 | 264 |
} |
264 | 265 |
|
265 | 266 |
/* Integrator/CP hardware emulation. */ |
... | ... | |
372 | 373 |
icp_pic_write |
373 | 374 |
}; |
374 | 375 |
|
375 |
static void icp_pic_init(SysBusDevice *dev)
|
|
376 |
static int icp_pic_init(SysBusDevice *dev)
|
|
376 | 377 |
{ |
377 | 378 |
icp_pic_state *s = FROM_SYSBUS(icp_pic_state, dev); |
378 | 379 |
int iomemtype; |
... | ... | |
383 | 384 |
iomemtype = cpu_register_io_memory(icp_pic_readfn, |
384 | 385 |
icp_pic_writefn, s); |
385 | 386 |
sysbus_init_mmio(dev, 0x00800000, iomemtype); |
387 |
return 0; |
|
386 | 388 |
} |
387 | 389 |
|
388 | 390 |
/* CP control registers. */ |
Also available in: Unified diff