diff options
author | Kevin Wolf <kwolf@redhat.com> | 2010-12-17 19:43:41 +0100 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2010-12-17 19:57:21 +0100 |
commit | f56b18c08cd29bb47e4d6a72f97c44616bd0611e (patch) | |
tree | 5e1204c741efb3746da72a4e5b29464f595b309f /hw | |
parent | e59d688ad112719cb264f395b1f5895866ebf309 (diff) | |
download | hqemu-f56b18c08cd29bb47e4d6a72f97c44616bd0611e.zip hqemu-f56b18c08cd29bb47e4d6a72f97c44616bd0611e.tar.gz |
ide: Fix build for cmd646.c
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Acked-by: Andreas Färber <andreas.faerber@web.de>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/ide/cmd646.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/ide/cmd646.c b/hw/ide/cmd646.c index 89ba836..5d5464a 100644 --- a/hw/ide/cmd646.c +++ b/hw/ide/cmd646.c @@ -255,9 +255,9 @@ static int pci_cmd646_ide_initfn(PCIDevice *dev) ide_init2(&d->bus[i], irq[i]); bmdma_init(&d->bus[i], &d->bmdma[i]); - bm->bus = &d->bus[i]; + d->bmdma[i].bus = &d->bus[i]; qemu_add_vm_change_state_handler(d->bus[i].dma->ops->restart_cb, - &d->bmdma[i]->dma); + &d->bmdma[i].dma); } vmstate_register(&dev->qdev, 0, &vmstate_ide_pci, d); |