aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTejun Heo <htejun@gmail.com>2007-12-06 01:02:48 -0500
committerJeff Garzik <jeff@garzik.org>2007-12-07 15:27:53 -0500
commit994056d7aa884c742f58e2f2c17305bb01bf14e7 (patch)
tree41db117f56760ffb89dba6ae505799cf6ba27430
parent2c5ea0f2d8c7d4883dd0d8ec3c7e3f3640b4f814 (diff)
ahci: fix engine reset failed message
There isn't much point in reporting -EOPNOTSUPP as failure. Also the message was missing newline. Signed-off-by: Tejun Heo <htejun@gmail.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>
-rw-r--r--drivers/ata/ahci.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/ata/ahci.c b/drivers/ata/ahci.c
index 4688dbf2d111..588ab2fd59e7 100644
--- a/drivers/ata/ahci.c
+++ b/drivers/ata/ahci.c
@@ -1271,9 +1271,9 @@ static int ahci_do_softreset(struct ata_link *link, unsigned int *class,
1271 1271
1272 /* prepare for SRST (AHCI-1.1 10.4.1) */ 1272 /* prepare for SRST (AHCI-1.1 10.4.1) */
1273 rc = ahci_kick_engine(ap, 1); 1273 rc = ahci_kick_engine(ap, 1);
1274 if (rc) 1274 if (rc && rc != -EOPNOTSUPP)
1275 ata_link_printk(link, KERN_WARNING, 1275 ata_link_printk(link, KERN_WARNING,
1276 "failed to reset engine (errno=%d)", rc); 1276 "failed to reset engine (errno=%d)\n", rc);
1277 1277
1278 ata_tf_init(link->device, &tf); 1278 ata_tf_init(link->device, &tf);
1279 1279