From 70ae65f5d91462e1905a53236179fde21cda3a2f Mon Sep 17 00:00:00 2001 From: "Igor V. Kovalenko" Date: Fri, 23 Apr 2010 01:54:45 +0400 Subject: 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 Signed-off-by: Igor V. Kovalenko Signed-off-by: Blue Swirl --- hw/ide/internal.h | 1 - 1 file changed, 1 deletion(-) (limited to 'hw/ide/internal.h') 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; -- cgit v1.2.3