diff options
-rw-r--r-- | drivers/scsi/libata-core.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/scsi/libata-core.c b/drivers/scsi/libata-core.c index 9cd9053e78fe..d1530b9fd8e7 100644 --- a/drivers/scsi/libata-core.c +++ b/drivers/scsi/libata-core.c | |||
@@ -394,6 +394,15 @@ static const char *ata_mode_string(unsigned int xfer_mask) | |||
394 | return "<n/a>"; | 394 | return "<n/a>"; |
395 | } | 395 | } |
396 | 396 | ||
397 | static void ata_dev_disable(struct ata_port *ap, struct ata_device *dev) | ||
398 | { | ||
399 | if (ata_dev_present(dev)) { | ||
400 | printk(KERN_WARNING "ata%u: dev %u disabled\n", | ||
401 | ap->id, dev->devno); | ||
402 | dev->class++; | ||
403 | } | ||
404 | } | ||
405 | |||
397 | /** | 406 | /** |
398 | * ata_pio_devchk - PATA device presence detection | 407 | * ata_pio_devchk - PATA device presence detection |
399 | * @ap: ATA channel to examine | 408 | * @ap: ATA channel to examine |