diff options
author | peter <peter@FreeBSD.org> | 2002-08-20 00:05:41 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2002-08-20 00:05:41 +0000 |
commit | 6c52efa2a1761d5e21a1a1383d0c7aa2dfc39875 (patch) | |
tree | fa62b02e927e677774cb8f62957f335edcfb4a8a /sys/pc98/cbus/pckbd.c | |
parent | 20c193346eab331a0a09751c662a1f8486f1ca41 (diff) | |
download | FreeBSD-src-6c52efa2a1761d5e21a1a1383d0c7aa2dfc39875.zip FreeBSD-src-6c52efa2a1761d5e21a1a1383d0c7aa2dfc39875.tar.gz |
de-count pckbd for pc98. This file is only compiled if NPCKBD was 1,
so the conditional compile should never have been used.
Diffstat (limited to 'sys/pc98/cbus/pckbd.c')
-rw-r--r-- | sys/pc98/cbus/pckbd.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/sys/pc98/cbus/pckbd.c b/sys/pc98/cbus/pckbd.c index ad2a7cc..0237da3 100644 --- a/sys/pc98/cbus/pckbd.c +++ b/sys/pc98/cbus/pckbd.c @@ -28,7 +28,6 @@ * $FreeBSD$ */ -#include "pckbd.h" #include "opt_kbd.h" #include <sys/param.h> @@ -889,7 +888,7 @@ init_keyboard(KBDC kbdc, int *type, int flags) /* local variables */ -static struct kbdc_softc kbdc_softc[NPCKBD] = { { 0 }, }; +static struct kbdc_softc kbdc_softc[1] = { { 0 }, }; /* associate a port number with a KBDC */ @@ -899,13 +898,10 @@ kbdc_open(int port) if (port <= 0) port = IO_KBD; - if (NPCKBD) { - /* PC-98 has only one keyboard I/F */ - kbdc_softc[0].port = port; - kbdc_softc[0].lock = FALSE; - return (KBDC)&kbdc_softc[0]; - } - return NULL; /* You didn't include sc driver in your config file */ + /* PC-98 has only one keyboard I/F */ + kbdc_softc[0].port = port; + kbdc_softc[0].lock = FALSE; + return (KBDC)&kbdc_softc[0]; } /* set/reset polling lock */ |