ide: keep pointer to struct device instead of struct pci_dev in ide_hwif_t
[deliverable/linux.git] / drivers / ide / pci / cs5520.c
index 6ec00b8d7ec1b1e10f51a7e023b4a9ed6ffed1b4..9e01c6dc758eb6c0d898e22a523283d3392f6a8d 100644 (file)
@@ -69,7 +69,7 @@ static struct pio_clocks cs5520_pio_clocks[]={
 static void cs5520_set_pio_mode(ide_drive_t *drive, const u8 pio)
 {
        ide_hwif_t *hwif = HWIF(drive);
-       struct pci_dev *pdev = hwif->pci_dev;
+       struct pci_dev *pdev = to_pci_dev(hwif->dev);
        int controller = drive->dn > 1 ? 1 : 0;
 
        /* FIXME: if DMA = 1 do we need to set the DMA bit here ? */
This page took 0.035022 seconds and 5 git commands to generate.