]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/ide/ide-iops.c
ide: add ide_dev_is_sata() helper (take 2)
[linux-2.6-omap-h63xx.git] / drivers / ide / ide-iops.c
index 18cf3a66a1a327f2405124953fca468a826bc055..646a54e233d361451bfab4982a1da96956be82a2 100644 (file)
@@ -584,6 +584,8 @@ int ide_in_drive_list(struct hd_driveid *id, const struct drive_list_entry *driv
        return 0;
 }
 
+EXPORT_SYMBOL_GPL(ide_in_drive_list);
+
 /*
  * Early UDMA66 devices don't set bit14 to 1, only bit13 is valid.
  * We list them here and depend on the device side cable detection for them.
@@ -613,8 +615,7 @@ u8 eighty_ninty_three (ide_drive_t *drive)
        if (hwif->cbl != ATA_CBL_PATA80 && !ivb)
                goto no_80w;
 
-       /* Check for SATA but only if we are ATA5 or higher */
-       if (id->hw_config == 0 && (id->major_rev_num & 0x7FE0))
+       if (ide_dev_is_sata(id))
                return 1;
 
        /*