]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/ide/cs5520.c
ide: shorten timeout value in ide_driveid_update()
[linux-2.6-omap-h63xx.git] / drivers / ide / cs5520.c
index 5efb467f8fa0009fa257e9e6a41de1afa3e3f630..58fb90e5b7635c08ae16545b876776c46af095d0 100644 (file)
@@ -59,7 +59,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);
+       ide_hwif_t *hwif = drive->hwif;
        struct pci_dev *pdev = to_pci_dev(hwif->dev);
        int controller = drive->dn > 1 ? 1 : 0;
 
@@ -133,7 +133,8 @@ static int __devinit cs5520_init_one(struct pci_dev *dev, const struct pci_devic
         *      do all the device setup for us
         */
 
-       ide_pci_setup_ports(dev, d, 14, &hw[0], &hws[0]);
+       ide_pci_setup_ports(dev, d, &hw[0], &hws[0]);
+       hw[0].irq = 14;
 
        return ide_host_add(d, hws, NULL);
 }