From ae05c598e1ed5a9ba7cd770db38146980f8380bc Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Tue, 20 Aug 2002 00:05:41 +0000 Subject: [PATCH] de-count pckbd for pc98. This file is only compiled if NPCKBD was 1, so the conditional compile should never have been used. --- sys/pc98/cbus/pckbd.c | 14 +++++--------- 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 ad2a7cc8030..0237da3ebef 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 @@ -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 ad2a7cc8030..0237da3ebef 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 @@ -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 */ -- 2.45.2