summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjason <jason@openbsd.org>2002-07-18 02:22:19 +0000
committerjason <jason@openbsd.org>2002-07-18 02:22:19 +0000
commita5ae856c876ce04dd86de6f083a66a51924e6e6c (patch)
tree82560d90e5cd39031c2f7dcf6003c30cf7b13641
parentanother name, 'parallel' (diff)
downloadwireguard-openbsd-a5ae856c876ce04dd86de6f083a66a51924e6e6c.tar.xz
wireguard-openbsd-a5ae856c876ce04dd86de6f083a66a51924e6e6c.zip
Match compatible sab82532
-rw-r--r--sys/arch/sparc64/dev/sab.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/arch/sparc64/dev/sab.c b/sys/arch/sparc64/dev/sab.c
index 51a1cc1e3ac..1ad3e9ed446 100644
--- a/sys/arch/sparc64/dev/sab.c
+++ b/sys/arch/sparc64/dev/sab.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sab.c,v 1.7 2002/04/08 17:49:42 jason Exp $ */
+/* $OpenBSD: sab.c,v 1.8 2002/07/18 02:22:19 jason Exp $ */
/*
* Copyright (c) 2001 Jason L. Wright (jason@thought.net)
@@ -214,9 +214,13 @@ sab_match(parent, match, aux)
void *match, *aux;
{
struct ebus_attach_args *ea = aux;
+ char *compat;
if (strcmp(ea->ea_name, "se") == 0)
return (1);
+ compat = getpropstring(ea->ea_node, "compatible");
+ if (compat != NULL && !strcmp(compat, "sab82532"))
+ return (1);
return (0);
}