summaryrefslogtreecommitdiffstats
path: root/hw/audio/cs4231a.c
diff options
context:
space:
mode:
authorPaolo Bonzini2013-06-07 03:25:08 +0200
committerPaolo Bonzini2013-07-04 17:42:47 +0200
commit64bde0f3e7170cc8a9b60da835b9b3cefd03a7a5 (patch)
treef6f07f44453620ddeab4a1251887357eeca7587f /hw/audio/cs4231a.c
parentpiolist: add owner argument to initialization functions and pass devices (diff)
downloadqemu-64bde0f3e7170cc8a9b60da835b9b3cefd03a7a5.tar.gz
qemu-64bde0f3e7170cc8a9b60da835b9b3cefd03a7a5.tar.xz
qemu-64bde0f3e7170cc8a9b60da835b9b3cefd03a7a5.zip
hw/a*: pass owner to memory_region_init* functions
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/audio/cs4231a.c')
-rw-r--r--hw/audio/cs4231a.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/audio/cs4231a.c b/hw/audio/cs4231a.c
index c31da2ea1b..7365c3c1de 100644
--- a/hw/audio/cs4231a.c
+++ b/hw/audio/cs4231a.c
@@ -648,7 +648,8 @@ static void cs4231a_initfn (Object *obj)
{
CSState *s = CS4231A (obj);
- memory_region_init_io (&s->ioports, NULL, &cs_ioport_ops, s, "cs4231a", 4);
+ memory_region_init_io (&s->ioports, OBJECT(s), &cs_ioport_ops, s,
+ "cs4231a", 4);
}
static void cs4231a_realizefn (DeviceState *dev, Error **errp)