]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/ide/ide-timings.c
tty: Fix USB kref leak
[linux-2.6-omap-h63xx.git] / drivers / ide / ide-timings.c
index d64f345f2fc0daf7126d1dc650fe1a83443f8b61..81f527af8fae75f097d4ba29d80d9d7929a15b74 100644 (file)
@@ -22,7 +22,6 @@
  */
 
 #include <linux/kernel.h>
-#include <linux/hdreg.h>
 #include <linux/ide.h>
 #include <linux/module.h>
 
@@ -83,7 +82,7 @@ u16 ide_pio_cycle_time(ide_drive_t *drive, u8 pio)
        u16 cycle = 0;
 
        if (id[ATA_ID_FIELD_VALID] & 2) {
-               if (drive->driveid->capability & 8)
+               if (ata_id_has_iordy(drive->id))
                        cycle = id[ATA_ID_EIDE_PIO_IORDY];
                else
                        cycle = id[ATA_ID_EIDE_PIO];