diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/scsi/ahci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/ahci.c b/drivers/scsi/ahci.c index d23f00230a76..c33255404ee5 100644 --- a/drivers/scsi/ahci.c +++ b/drivers/scsi/ahci.c | |||
@@ -670,7 +670,7 @@ static int ahci_hardreset(struct ata_port *ap, unsigned int *class) | |||
670 | rc = sata_std_hardreset(ap, class); | 670 | rc = sata_std_hardreset(ap, class); |
671 | ahci_start_engine(ap); | 671 | ahci_start_engine(ap); |
672 | 672 | ||
673 | if (rc == 0) | 673 | if (rc == 0 && sata_dev_present(ap)) |
674 | *class = ahci_dev_classify(ap); | 674 | *class = ahci_dev_classify(ap); |
675 | if (*class == ATA_DEV_UNKNOWN) | 675 | if (*class == ATA_DEV_UNKNOWN) |
676 | *class = ATA_DEV_NONE; | 676 | *class = ATA_DEV_NONE; |