Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi
[linux-2.6-microblaze.git] / drivers / scsi / libsas / sas_ata.c
index 64a958a..4f6cdf5 100644 (file)
@@ -654,7 +654,7 @@ void sas_probe_sata(struct asd_sas_port *port)
                /* if libata could not bring the link up, don't surface
                 * the device
                 */
-               if (ata_dev_disabled(sas_to_ata_dev(dev)))
+               if (!ata_dev_enabled(sas_to_ata_dev(dev)))
                        sas_fail_probe(dev, __func__, -ENODEV);
        }