summaryrefslogtreecommitdiff
path: root/sys/dev/ebus
diff options
context:
space:
mode:
authormartin <martin@NetBSD.org>2009-01-31 10:35:38 +0000
committermartin <martin@NetBSD.org>2009-01-31 10:35:38 +0000
commit81ebd851108397efd3d1212e2877d2f9c95ac697 (patch)
tree3d4531a6d1ba42be22055d8c12a45d200299352e /sys/dev/ebus
parent740c75e25d9fb3656f20ac65f522b4b43a8849ec (diff)
Make it attach on JavaStation KRUPS again
Diffstat (limited to 'sys/dev/ebus')
-rw-r--r--sys/dev/ebus/cs4231_ebus.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/sys/dev/ebus/cs4231_ebus.c b/sys/dev/ebus/cs4231_ebus.c
index 0b8bdb8d168..69b1a43ff0a 100644
--- a/sys/dev/ebus/cs4231_ebus.c
+++ b/sys/dev/ebus/cs4231_ebus.c
@@ -1,4 +1,4 @@
-/* $NetBSD: cs4231_ebus.c,v 1.30 2009/01/06 04:04:55 mrg Exp $ */
+/* $NetBSD: cs4231_ebus.c,v 1.31 2009/01/31 10:35:38 martin Exp $ */
/*
* Copyright (c) 2002 Valeriy E. Ushakov
@@ -28,7 +28,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cs4231_ebus.c,v 1.30 2009/01/06 04:04:55 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cs4231_ebus.c,v 1.31 2009/01/31 10:35:38 martin Exp $");
#ifdef _KERNEL_OPT
#include "opt_sparc_arch.h"
@@ -159,6 +159,12 @@ cs4231_ebus_match(struct device *parent, struct cfdata *cf, void *aux)
do {
if (strcmp(compat, AUDIOCS_PROM_NAME) == 0)
return 1;
+#ifdef __sparc__
+ /* on KRUPS compatible lists: "cs4231", "ad1848",
+ * "mwave", and "pnpPNP,b007" */
+ if (strcmp(compat, "cs4231") == 0)
+ return 1;
+#endif
len = strlen(compat) + 1;
total_size -= len;
compat += len;