aboutsummaryrefslogtreecommitdiff
path: root/hw/display/jazz_led.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2013-06-06 21:25:08 -0400
committerPaolo Bonzini <pbonzini@redhat.com>2013-07-04 17:42:47 +0200
commit3eadad551d3d5901b75f8c53dbd57b9bec2f2b01 (patch)
tree3e09bba95ebdee8621fde3463ad7cf91940b6718 /hw/display/jazz_led.c
parent300b1fc68c47478f36705f23a93dce77ac3e429a (diff)
hw/d*: pass owner to memory_region_init* functions
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/display/jazz_led.c')
-rw-r--r--hw/display/jazz_led.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/display/jazz_led.c b/hw/display/jazz_led.c
index e6a508ef89..7f82037d99 100644
--- a/hw/display/jazz_led.c
+++ b/hw/display/jazz_led.c
@@ -264,7 +264,7 @@ static int jazz_led_init(SysBusDevice *dev)
{
LedState *s = FROM_SYSBUS(LedState, dev);
- memory_region_init_io(&s->iomem, NULL, &led_ops, s, "led", 1);
+ memory_region_init_io(&s->iomem, OBJECT(s), &led_ops, s, "led", 1);
sysbus_init_mmio(dev, &s->iomem);
s->con = graphic_console_init(DEVICE(dev), &jazz_led_ops, s);