From: Tejun Heo Date: Thu, 6 Dec 2007 06:02:48 +0000 (+0900) Subject: ahci: fix engine reset failed message X-Git-Tag: v2.6.24-rc5~24^2~3 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=994056d7aa884c742f58e2f2c17305bb01bf14e7;p=linux-2.6-omap-h63xx.git 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 Signed-off-by: Jeff Garzik --- diff --git a/drivers/ata/ahci.c b/drivers/ata/ahci.c index 4688dbf2d11..588ab2fd59e 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, /* prepare for SRST (AHCI-1.1 10.4.1) */ rc = ahci_kick_engine(ap, 1); - if (rc) + if (rc && rc != -EOPNOTSUPP) ata_link_printk(link, KERN_WARNING, - "failed to reset engine (errno=%d)", rc); + "failed to reset engine (errno=%d)\n", rc); ata_tf_init(link->device, &tf);