[1/2] ide: Fix build for cmd646.c
diff mbox

Message ID 1292614741-843-2-git-send-email-kwolf@redhat.com
State New
Headers show

Commit Message

Kevin Wolf Dec. 17, 2010, 7:39 p.m. UTC
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Acked-by: Andreas Färber <andreas.faerber@web.de>
---
 hw/ide/cmd646.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

Comments

Stefan Hajnoczi Dec. 18, 2010, 8:40 a.m. UTC | #1
On Fri, Dec 17, 2010 at 7:39 PM, Kevin Wolf <kwolf@redhat.com> wrote:
> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
> Acked-by: Andreas Färber <andreas.faerber@web.de>
> ---
>  hw/ide/cmd646.c |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)

Sorry, I should have rebuilt all targets before sending
f25497613134e3d1e82e216075ebe1f550e78124.

Stefan

Patch
diff mbox

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);