]> git.baikalelectronics.ru Git - kernel.git/commit
libata: don't whine if ->prereset() returns -ENOENT
authorTejun Heo <htejun@gmail.com>
Mon, 12 Mar 2007 08:24:08 +0000 (17:24 +0900)
committerJeff Garzik <jeff@garzik.org>
Mon, 19 Mar 2007 15:55:43 +0000 (11:55 -0400)
commit78ae22dfd64a1effa13283f3d42155ca3b1a5b92
tree06b726e351b36e07434359a4d41d91de42891bcb
parent33f95efdc747b430f0b459d9212fd3b05cbfb1c0
libata: don't whine if ->prereset() returns -ENOENT

->prereset() returns -ENOENT to tell libata that the port is empty and
reset sequencing should be stopped.  This is not an error condition.
Update ata_eh_reset() such that it sets device classes to ATA_DEV_NONE
and return success in on -ENOENT.  This makes spurious error message
go away.

Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/ata/libata-eh.c