summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2001-08-11 16:18:43 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2001-08-11 16:18:43 +0000
commitc70aa2b0cef9985f67daa0800ae98358b29e50f9 (patch)
treecb2fbea25aaa203c2f1363e7f248c13346279c29 /sys
parentecd79aff79f0c480f7aa11c77f73d2ca1119605e (diff)
make this compile without akbd in the kernel configuration.
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/powerpc/powerpc/ofw_machdep.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/arch/powerpc/powerpc/ofw_machdep.c b/sys/arch/powerpc/powerpc/ofw_machdep.c
index 76e547fc54b..00f8e4030bb 100644
--- a/sys/arch/powerpc/powerpc/ofw_machdep.c
+++ b/sys/arch/powerpc/powerpc/ofw_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ofw_machdep.c,v 1.23 2001/07/25 13:25:33 art Exp $ */
+/* $OpenBSD: ofw_machdep.c,v 1.24 2001/08/11 16:18:42 matthieu Exp $ */
/* $NetBSD: ofw_machdep.c,v 1.1 1996/09/30 16:34:50 ws Exp $ */
/*
@@ -436,7 +436,9 @@ ofwconprobe()
/* what to do about serial console? */
if (strcmp ("keyboard", iname) == 0) {
struct usb_kbd_ihandles *ukbds;
+#if NAKBD > 0
int akbd;
+#endif
/* if there is a usb keyboard, we want it, do not
* dereference the pointer that is returned
*/
@@ -447,6 +449,7 @@ ofwconprobe()
ukbd_cnattach();
goto kbd_found;
}
+#if NAKBD > 0
if (OF_call_method("`adb-kbd-ihandle", OF_stdin, 0, 1, &akbd)
!= -1 &&
akbd != 0 &&
@@ -456,6 +459,7 @@ ofwconprobe()
akbd_cnattach();
goto kbd_found;
}
+#endif
panic("no console keyboard");
kbd_found:
}