summaryrefslogtreecommitdiff
path: root/sys/dev/ata/atascsi.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/ata/atascsi.c')
-rw-r--r--sys/dev/ata/atascsi.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/ata/atascsi.c b/sys/dev/ata/atascsi.c
index fcb10353e2c..4c6fe70446a 100644
--- a/sys/dev/ata/atascsi.c
+++ b/sys/dev/ata/atascsi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: atascsi.c,v 1.59 2007/12/29 00:45:26 dlg Exp $ */
+/* $OpenBSD: atascsi.c,v 1.60 2007/12/30 13:02:53 dlg Exp $ */
/*
* Copyright (c) 2007 David Gwynne <dlg@openbsd.org>
@@ -215,6 +215,9 @@ atascsi_probe(struct scsi_link *link)
as->as_ports[port] = ap;
+ if (type != ATA_PORT_T_DISK)
+ return (0);
+
/* Enable write cache if supported */
if (ap->ap_identify.cmdset82 & ATA_IDENTIFY_WRITECACHE) {
xa = ata_get_xfer(ap);