summaryrefslogtreecommitdiff
path: root/hw/pl080.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/pl080.c')
-rw-r--r--hw/pl080.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/hw/pl080.c b/hw/pl080.c
index a6ea8ebf96..2df65fab94 100644
--- a/hw/pl080.c
+++ b/hw/pl080.c
@@ -319,7 +319,7 @@ static CPUWriteMemoryFunc * const pl080_writefn[] = {
pl080_write
};
-static void pl08x_init(SysBusDevice *dev, int nchannels)
+static int pl08x_init(SysBusDevice *dev, int nchannels)
{
int iomemtype;
pl080_state *s = FROM_SYSBUS(pl080_state, dev);
@@ -330,16 +330,17 @@ static void pl08x_init(SysBusDevice *dev, int nchannels)
sysbus_init_irq(dev, &s->irq);
s->nchannels = nchannels;
/* ??? Save/restore. */
+ return 0;
}
-static void pl080_init(SysBusDevice *dev)
+static int pl080_init(SysBusDevice *dev)
{
- pl08x_init(dev, 8);
+ return pl08x_init(dev, 8);
}
-static void pl081_init(SysBusDevice *dev)
+static int pl081_init(SysBusDevice *dev)
{
- pl08x_init(dev, 2);
+ return pl08x_init(dev, 2);
}
/* The PL080 and PL081 are the same except for the number of channels