diff options
| author | Peter Wemm <peter@FreeBSD.org> | 2002-08-20 00:05:41 +0000 |
|---|---|---|
| committer | Peter Wemm <peter@FreeBSD.org> | 2002-08-20 00:05:41 +0000 |
| commit | ae05c598e1ed5a9ba7cd770db38146980f8380bc (patch) | |
| tree | fa62b02e927e677774cb8f62957f335edcfb4a8a /sys | |
| parent | 5452db4885e95e0b776c7e2afda0fbc8c96db71e (diff) | |
Notes
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/pc98/cbus/pckbd.c | 14 | ||||
| -rw-r--r-- | sys/pc98/pc98/pc98kbd.c | 14 |
2 files changed, 10 insertions, 18 deletions
diff --git a/sys/pc98/cbus/pckbd.c b/sys/pc98/cbus/pckbd.c index ad2a7cc80308..0237da3ebef5 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 */ diff --git a/sys/pc98/pc98/pc98kbd.c b/sys/pc98/pc98/pc98kbd.c index ad2a7cc80308..0237da3ebef5 100644 --- a/sys/pc98/pc98/pc98kbd.c +++ b/sys/pc98/pc98/pc98kbd.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 */ |
