From efdd66a9df33af18b4181462dd9b00342fcd3d66 Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Mon, 23 Oct 2006 20:15:51 +0000 Subject: Do not match on non-shpcic config stanza. --- sys/arch/sh/dev/shpcic.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'sys/arch') 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 #include +#include #include #include @@ -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); -- cgit v1.2.3