summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/pc98/cbus/pckbd.c14
-rw-r--r--sys/pc98/pc98/pc98kbd.c14
2 files changed, 10 insertions, 18 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 */
diff --git a/sys/pc98/pc98/pc98kbd.c b/sys/pc98/pc98/pc98kbd.c
index ad2a7cc..0237da3 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 */
OpenPOWER on IntegriCloud