summaryrefslogtreecommitdiff
path: root/sys/dev/usb
diff options
context:
space:
mode:
authoraugustss <augustss@NetBSD.org>2000-04-06 13:52:04 +0000
committeraugustss <augustss@NetBSD.org>2000-04-06 13:52:04 +0000
commit7859835446f0724ffc7cc2b79bc5e7af94eb663f (patch)
treede6aabc3549c2cd4bd6adf746e99e13fb26293d7 /sys/dev/usb
parent580ccd66ad2c5e69b1f90a58c892a37f9383415f (diff)
Add another #if NATAPIBUS > 0 in case there is no atapibus attached.
Diffstat (limited to 'sys/dev/usb')
-rw-r--r--sys/dev/usb/umass.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/sys/dev/usb/umass.c b/sys/dev/usb/umass.c
index d8c3bac2c2f..85ea9906019 100644
--- a/sys/dev/usb/umass.c
+++ b/sys/dev/usb/umass.c
@@ -1,4 +1,4 @@
-/* $NetBSD: umass.c,v 1.32 2000/04/04 20:16:47 augustss Exp $ */
+/* $NetBSD: umass.c,v 1.33 2000/04/06 13:52:04 augustss Exp $ */
/*-
* Copyright (c) 1999 MAEKAWA Masahide <bishop@rr.iij4u.or.jp>,
* Nick Hibma <n_hibma@freebsd.org>
@@ -1108,13 +1108,20 @@ scsipiprint(aux, pnp)
void *aux;
const char *pnp;
{
- extern int atapi_print __P((void *aux, const char *pnp));
struct scsipi_link *l = aux;
if (l->type == BUS_SCSI)
return (scsiprint(aux, pnp));
- else
+ else {
+#if NATAPIBUS > 0
+ extern int atapi_print __P((void *aux, const char *pnp));
return (atapi_print(aux, pnp));
+#else
+ if (pnp)
+ printf("atapibus at %s", pnp);
+ return (UNCONF);
+#endif
+ }
}
USB_DETACH(umass)