diff options
author | Juan Quintela <quintela@redhat.com> | 2009-10-07 16:56:29 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-10-12 09:42:31 -0500 |
commit | d1570baa5790d3c529a60120539193a58cd31229 (patch) | |
tree | 7ec069a1c1c8ca508f85750a953e8c7c16e8faca /hw/ide | |
parent | 0cde1b4ca04b34bd74a52c7a66c8b8cf5b154fa0 (diff) | |
download | hqemu-d1570baa5790d3c529a60120539193a58cd31229.zip hqemu-d1570baa5790d3c529a60120539193a58cd31229.tar.gz |
ide: BMDMAState don't need a pci_dev field anymore
Patchworks-ID: 35306
Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/ide')
-rw-r--r-- | hw/ide/cmd646.c | 1 | ||||
-rw-r--r-- | hw/ide/internal.h | 1 | ||||
-rw-r--r-- | hw/ide/piix.c | 1 |
3 files changed, 0 insertions, 3 deletions
diff --git a/hw/ide/cmd646.c b/hw/ide/cmd646.c index 3b5362d..5c8f615 100644 --- a/hw/ide/cmd646.c +++ b/hw/ide/cmd646.c @@ -144,7 +144,6 @@ static void bmdma_map(PCIDevice *pci_dev, int region_num, for(i = 0;i < 2; i++) { BMDMAState *bm = &d->bmdma[i]; d->bus[i].bmdma = bm; - bm->pci_dev = DO_UPCAST(PCIIDEState, dev, pci_dev); bm->bus = d->bus+i; qemu_add_vm_change_state_handler(ide_dma_restart_cb, bm); diff --git a/hw/ide/internal.h b/hw/ide/internal.h index 21319fe..2e40431 100644 --- a/hw/ide/internal.h +++ b/hw/ide/internal.h @@ -473,7 +473,6 @@ struct BMDMAState { uint8_t status; uint32_t addr; - struct PCIIDEState *pci_dev; IDEBus *bus; /* current transfer state */ uint32_t cur_addr; diff --git a/hw/ide/piix.c b/hw/ide/piix.c index 4583c42..ddce684 100644 --- a/hw/ide/piix.c +++ b/hw/ide/piix.c @@ -77,7 +77,6 @@ static void bmdma_map(PCIDevice *pci_dev, int region_num, for(i = 0;i < 2; i++) { BMDMAState *bm = &d->bmdma[i]; d->bus[i].bmdma = bm; - bm->pci_dev = DO_UPCAST(PCIIDEState, dev, pci_dev); bm->bus = d->bus+i; qemu_add_vm_change_state_handler(ide_dma_restart_cb, bm); |