aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ata')
-rw-r--r--drivers/ata/libata-core.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c
index deda68446b43..642097a7d60d 100644
--- a/drivers/ata/libata-core.c
+++ b/drivers/ata/libata-core.c
@@ -600,8 +600,9 @@ static const char *sata_spd_string(unsigned int spd)
600 600
601void ata_dev_disable(struct ata_device *dev) 601void ata_dev_disable(struct ata_device *dev)
602{ 602{
603 if (ata_dev_enabled(dev) && ata_msg_drv(dev->ap)) { 603 if (ata_dev_enabled(dev)) {
604 ata_dev_printk(dev, KERN_WARNING, "disabled\n"); 604 if (ata_msg_drv(dev->ap))
605 ata_dev_printk(dev, KERN_WARNING, "disabled\n");
605 ata_down_xfermask_limit(dev, ATA_DNXFER_FORCE_PIO0 | 606 ata_down_xfermask_limit(dev, ATA_DNXFER_FORCE_PIO0 |
606 ATA_DNXFER_QUIET); 607 ATA_DNXFER_QUIET);
607 dev->class++; 608 dev->class++;