summaryrefslogtreecommitdiff
path: root/hw/ide/internal.h
diff options
context:
space:
mode:
authorIgor V. Kovalenko <igor.v.kovalenko@gmail.com>2010-04-23 01:54:45 +0400
committerBlue Swirl <blauwirbel@gmail.com>2010-05-01 19:44:43 +0000
commit70ae65f5d91462e1905a53236179fde21cda3a2f (patch)
tree3a8aa8c27ce6c8e7560e9cbdb7e27d0ec6f0db66 /hw/ide/internal.h
parent9ed7b059ef776a3921cfd085e891f45076922542 (diff)
downloadqemu-70ae65f5d91462e1905a53236179fde21cda3a2f.tar.gz
cmd646: pass pci_dev as it needs it
Instead of doing tricks to get the pci_dev, just pass it in the 1st place. Patch is a bit longer that reverting the pci_dev field, but it states more clearly (IMHO) what we are doing. It also fixes the bm test, now that you told me that ->unit is not always valid. Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Igor V. Kovalenko <igor.v.kovalenko@gmail.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw/ide/internal.h')
-rw-r--r--hw/ide/internal.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/hw/ide/internal.h b/hw/ide/internal.h
index 027029ecec..2efc7846bc 100644
--- a/hw/ide/internal.h
+++ b/hw/ide/internal.h
@@ -483,7 +483,6 @@ struct BMDMAState {
uint8_t status;
uint32_t addr;
- struct PCIIDEState *pci_dev;
IDEBus *bus;
/* current transfer state */
uint32_t cur_addr;