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 | 22fc860b0a0b689eacf4a01f5aa2ccbf36043a12 (patch) | |
tree | c630e8bc6fd31e50630843a7ee8bdf4265d5eef0 /hw/watchdog | |
parent | 853dca12055ea74994629d06798165d811c5e1e2 (diff) | |
download | qemu-22fc860b0a0b689eacf4a01f5aa2ccbf36043a12.tar.gz qemu-22fc860b0a0b689eacf4a01f5aa2ccbf36043a12.tar.bz2 qemu-22fc860b0a0b689eacf4a01f5aa2ccbf36043a12.zip |
hw/[u-x]*: pass owner to memory_region_init* functions
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/watchdog')
-rw-r--r-- | hw/watchdog/wdt_i6300esb.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/watchdog/wdt_i6300esb.c b/hw/watchdog/wdt_i6300esb.c index 2c750144da..85aebc28a3 100644 --- a/hw/watchdog/wdt_i6300esb.c +++ b/hw/watchdog/wdt_i6300esb.c @@ -417,7 +417,8 @@ static int i6300esb_init(PCIDevice *dev) d->timer = qemu_new_timer_ns(vm_clock, i6300esb_timer_expired, d); d->previous_reboot_flag = 0; - memory_region_init_io(&d->io_mem, NULL, &i6300esb_ops, d, "i6300esb", 0x10); + memory_region_init_io(&d->io_mem, OBJECT(d), &i6300esb_ops, d, + "i6300esb", 0x10); pci_register_bar(&d->dev, 0, 0, &d->io_mem); /* qemu_register_coalesced_mmio (addr, 0x10); ? */ |