aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/pci/cy82c693.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ide/pci/cy82c693.c')
-rw-r--r--drivers/ide/pci/cy82c693.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/ide/pci/cy82c693.c b/drivers/ide/pci/cy82c693.c
index 3ec4c659a37d..d43c52da4906 100644
--- a/drivers/ide/pci/cy82c693.c
+++ b/drivers/ide/pci/cy82c693.c
@@ -228,7 +228,7 @@ static void cy82c693_set_dma_mode(ide_drive_t *drive, const u8 mode)
228static void cy82c693_set_pio_mode(ide_drive_t *drive, const u8 pio) 228static void cy82c693_set_pio_mode(ide_drive_t *drive, const u8 pio)
229{ 229{
230 ide_hwif_t *hwif = HWIF(drive); 230 ide_hwif_t *hwif = HWIF(drive);
231 struct pci_dev *dev = hwif->pci_dev; 231 struct pci_dev *dev = to_pci_dev(hwif->dev);
232 pio_clocks_t pclk; 232 pio_clocks_t pclk;
233 unsigned int addrCtrl; 233 unsigned int addrCtrl;
234 234
@@ -397,8 +397,9 @@ static void __devinit init_hwif_cy82c693(ide_hwif_t *hwif)
397static void __devinit init_iops_cy82c693(ide_hwif_t *hwif) 397static void __devinit init_iops_cy82c693(ide_hwif_t *hwif)
398{ 398{
399 static ide_hwif_t *primary; 399 static ide_hwif_t *primary;
400 struct pci_dev *dev = to_pci_dev(hwif->dev);
400 401
401 if (PCI_FUNC(hwif->pci_dev->devfn) == 1) 402 if (PCI_FUNC(dev->devfn) == 1)
402 primary = hwif; 403 primary = hwif;
403 else { 404 else {
404 hwif->mate = primary; 405 hwif->mate = primary;