libata: -ENODEV during prereset isn't an error

During prereset, -ENODEV return from ata_wait_ready() is not an error.
This causes unnecessary bug message on controllers which uses 0xff to
indicate empty port. Fix it.

Signed-off-by: Tejun Heo <htejun@gmail.com>
Cc: Paul Mundt <lethal@linux-sh.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>

authored by Tejun Heo and committed by Jeff Garzik 6dffaf61 fd7fe701

+1 -1
+1 -1
drivers/ata/libata-core.c
··· 3368 3368 */ 3369 3369 if (!(ap->flags & ATA_FLAG_SKIP_D2H_BSY) && !ata_port_offline(ap)) { 3370 3370 rc = ata_wait_ready(ap, deadline); 3371 - if (rc) { 3371 + if (rc && rc != -ENODEV) { 3372 3372 ata_port_printk(ap, KERN_WARNING, "device not ready " 3373 3373 "(errno=%d), forcing hardreset\n", rc); 3374 3374 ehc->i.action |= ATA_EH_HARDRESET;