scsi: libsas: check the ata device status by ata_dev_enabled()
[platform/kernel/linux-rpi.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);
        }