diff options
Diffstat (limited to 'drivers/ata/sata_inic162x.c')
-rw-r--r-- | drivers/ata/sata_inic162x.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/ata/sata_inic162x.c b/drivers/ata/sata_inic162x.c index 25b747e26133..b3b62e985f19 100644 --- a/drivers/ata/sata_inic162x.c +++ b/drivers/ata/sata_inic162x.c | |||
@@ -453,7 +453,8 @@ static int inic_hardreset(struct ata_port *ap, unsigned int *class, | |||
453 | msleep(150); | 453 | msleep(150); |
454 | 454 | ||
455 | rc = ata_wait_ready(ap, deadline); | 455 | rc = ata_wait_ready(ap, deadline); |
456 | if (rc && rc != -ENODEV) { | 456 | /* link occupied, -ENODEV too is an error */ |
457 | if (rc) { | ||
457 | ata_port_printk(ap, KERN_WARNING, "device not ready " | 458 | ata_port_printk(ap, KERN_WARNING, "device not ready " |
458 | "after hardreset (errno=%d)\n", rc); | 459 | "after hardreset (errno=%d)\n", rc); |
459 | return rc; | 460 | return rc; |