diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2013-06-06 21:25:08 -0400 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2013-07-04 17:42:48 +0200 |
commit | 3c16154210ce6277bee553e72f7c7b2b2fecefbf (patch) | |
tree | 064740d1798b5970dba5160bea48b0a59f8f02dc /hw/misc/lm32_sys.c | |
parent | 1437c94b2689c2010362f84d14f14feaa1d8dba3 (diff) |
hw/m*: pass owner to memory_region_init* functions
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/misc/lm32_sys.c')
-rw-r--r-- | hw/misc/lm32_sys.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/misc/lm32_sys.c b/hw/misc/lm32_sys.c index accfbe3c44..060a5bf9b3 100644 --- a/hw/misc/lm32_sys.c +++ b/hw/misc/lm32_sys.c @@ -117,7 +117,8 @@ static int lm32_sys_init(SysBusDevice *dev) { LM32SysState *s = FROM_SYSBUS(typeof(*s), dev); - memory_region_init_io(&s->iomem, NULL, &sys_ops , s, "sys", R_MAX * 4); + memory_region_init_io(&s->iomem, OBJECT(dev), &sys_ops , s, + "sys", R_MAX * 4); sysbus_init_mmio(dev, &s->iomem); /* Note: This device is not created in the board initialization, |