aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/libata-scsi.c
diff options
context:
space:
mode:
authorJeff Garzik <jgarzik@pobox.com>2005-12-13 02:30:04 -0500
committerJeff Garzik <jgarzik@pobox.com>2005-12-13 02:30:04 -0500
commite508a391a0705f770ef1c4f1c304678b0e8e4fe8 (patch)
tree5ba0357fb21e08e52b8e904e88ef692dc78855fb /drivers/scsi/libata-scsi.c
parentd00d598ffbba974d9045ba8b95296655fe2162c5 (diff)
parent50630195bbdfe1ca775d94cd68a5f18bc1b717e4 (diff)
Merge branch 'upstream-fixes'
Diffstat (limited to 'drivers/scsi/libata-scsi.c')
-rw-r--r--drivers/scsi/libata-scsi.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/scsi/libata-scsi.c b/drivers/scsi/libata-scsi.c
index 2aef41112c43..f286a6f1c0db 100644
--- a/drivers/scsi/libata-scsi.c
+++ b/drivers/scsi/libata-scsi.c
@@ -2175,9 +2175,12 @@ ata_scsi_find_dev(struct ata_port *ap, const struct scsi_device *scsidev)
2175 if (unlikely(!ata_dev_present(dev))) 2175 if (unlikely(!ata_dev_present(dev)))
2176 return NULL; 2176 return NULL;
2177 2177
2178 if (!atapi_enabled) { 2178 if (!atapi_enabled || (ap->flags & ATA_FLAG_NO_ATAPI)) {
2179 if (unlikely(dev->class == ATA_DEV_ATAPI)) 2179 if (unlikely(dev->class == ATA_DEV_ATAPI)) {
2180 printk(KERN_WARNING "ata%u(%u): WARNING: ATAPI is %s, device ignored.\n",
2181 ap->id, dev->devno, atapi_enabled ? "not supported with this driver" : "disabled");
2180 return NULL; 2182 return NULL;
2183 }
2181 } 2184 }
2182 2185
2183 return dev; 2186 return dev;