diff options
author | Dale Rahn <drahn@cvs.openbsd.org> | 2001-08-24 14:36:32 +0000 |
---|---|---|
committer | Dale Rahn <drahn@cvs.openbsd.org> | 2001-08-24 14:36:32 +0000 |
commit | 1a04c41b4c4a2c5b54f9d178b18304e741617e15 (patch) | |
tree | 04e24fa928f9442d75a288c24d1c9742be337ddd | |
parent | eeee443828b528e58012aae41a23bcaae07e6efc (diff) |
Compile cleanup, systype is not currently used, so ifdef it.
-rw-r--r-- | sys/dev/ofw/ofbus.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/dev/ofw/ofbus.c b/sys/dev/ofw/ofbus.c index 27e94c396e8..ae48cf78d1a 100644 --- a/sys/dev/ofw/ofbus.c +++ b/sys/dev/ofw/ofbus.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ofbus.c,v 1.10 2001/08/21 07:13:46 matthieu Exp $ */ +/* $OpenBSD: ofbus.c,v 1.11 2001/08/24 14:36:31 drahn Exp $ */ /* $NetBSD: ofbus.c,v 1.3 1996/10/13 01:38:11 christos Exp $ */ /* @@ -33,6 +33,7 @@ */ #include <sys/param.h> +#include <sys/systm.h> #include <sys/device.h> #include <sys/systm.h> @@ -115,8 +116,10 @@ ofrattach(parent, dev, aux) struct ofprobe *ofp = aux; struct ofprobe probe; int node; +#ifdef HAVE_SYSTYPE char ofname[64]; int l; +#endif if (!(node = OF_peer(0))) panic("No PROM root"); @@ -126,6 +129,7 @@ ofrattach(parent, dev, aux) ofbprint(ofp, 0); printf("\n"); +#ifdef HAVE_SYSTYPE if ((l = OF_getprop(ofp->phandle, "model", ofname, sizeof ofname - 1)) < 0) { /* no system name? */ @@ -135,6 +139,7 @@ ofrattach(parent, dev, aux) ofname[l] = 0; systype(ofname); } +#endif ofw_intr_establish(); |