diff options
author | 2006-10-23 20:15:50 +0000 | |
---|---|---|
committer | 2006-10-23 20:15:50 +0000 | |
commit | af87755aabe8b486fad3776d721c83c7ba1ba7bf (patch) | |
tree | 287c21c417ed96b33a3dba9dea7666986260e8fb | |
parent | Do not panic on a ddb invocation with curproc == NULL, and don't try to (diff) | |
download | wireguard-openbsd-af87755aabe8b486fad3776d721c83c7ba1ba7bf.tar.xz wireguard-openbsd-af87755aabe8b486fad3776d721c83c7ba1ba7bf.zip |
Do not match on non-shpcic config stanza.
-rw-r--r-- | sys/arch/sh/dev/shpcic.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/arch/sh/dev/shpcic.c b/sys/arch/sh/dev/shpcic.c index 411a0d3b561..8085d85ea4d 100644 --- a/sys/arch/sh/dev/shpcic.c +++ b/sys/arch/sh/dev/shpcic.c @@ -1,4 +1,4 @@ -/* $OpenBSD: shpcic.c,v 1.4 2006/10/19 03:36:38 drahn Exp $ */ +/* $OpenBSD: shpcic.c,v 1.5 2006/10/23 20:15:50 miod Exp $ */ /* $NetBSD: shpcic.c,v 1.10 2005/12/24 20:07:32 perry Exp $ */ /* @@ -42,6 +42,7 @@ #include <sh/trap.h> #include <sh/dev/pcicreg.h> +#include <machine/autoconf.h> #include <machine/bus.h> #include <machine/intr.h> @@ -109,6 +110,11 @@ shpcic_lookup(void) int shpcic_match(struct device *parent, void *vcf, void *aux) { + struct mainbus_attach_args *ma = aux; + + if (strcmp(ma->ma_name, shpcic_cd.cd_name) != 0) + return (0); + if (!CPU_IS_SH4) return (0); |