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 | 853dca12055ea74994629d06798165d811c5e1e2 (patch) | |
tree | 7393d45ca718837aa7c6e97fe9e894fe4e78b1e8 /hw/timer/i8254.c | |
parent | 2977673992b7d363d0f402ee7c4217795fe13809 (diff) | |
download | hqemu-853dca12055ea74994629d06798165d811c5e1e2.zip hqemu-853dca12055ea74994629d06798165d811c5e1e2.tar.gz |
hw/t*: pass owner to memory_region_init* functions
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/timer/i8254.c')
-rw-r--r-- | hw/timer/i8254.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/timer/i8254.c b/hw/timer/i8254.c index fdb23da..cd52140 100644 --- a/hw/timer/i8254.c +++ b/hw/timer/i8254.c @@ -333,7 +333,8 @@ static void pit_realizefn(DeviceState *dev, Error **err) s->irq_timer = qemu_new_timer_ns(vm_clock, pit_irq_timer, s); qdev_init_gpio_out(dev, &s->irq, 1); - memory_region_init_io(&pit->ioports, NULL, &pit_ioport_ops, pit, "pit", 4); + memory_region_init_io(&pit->ioports, OBJECT(pit), &pit_ioport_ops, + pit, "pit", 4); qdev_init_gpio_in(dev, pit_irq_control, 1); |