diff options
author | peter <peter@FreeBSD.org> | 2000-01-29 15:08:56 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2000-01-29 15:08:56 +0000 |
commit | d7e5eb3faac173e7d9640e098621746b86213739 (patch) | |
tree | 9a2474b2f7c68ec2b1e97af2ab3b083c722e9ad7 /sys/dev/atkbdc/atkbdc.c | |
parent | e06faf1d941fbd0cfd397f781f3986049ecce128 (diff) | |
download | FreeBSD-src-d7e5eb3faac173e7d9640e098621746b86213739.zip FreeBSD-src-d7e5eb3faac173e7d9640e098621746b86213739.tar.gz |
Use config's conditional compilation rather than using #ifdefs that make
modular compilation harder. I'm doing this because people seem to like
cut/pasting examples of bad practices in existing code.
Diffstat (limited to 'sys/dev/atkbdc/atkbdc.c')
-rw-r--r-- | sys/dev/atkbdc/atkbdc.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/dev/atkbdc/atkbdc.c b/sys/dev/atkbdc/atkbdc.c index 68fcffc..63ea126 100644 --- a/sys/dev/atkbdc/atkbdc.c +++ b/sys/dev/atkbdc/atkbdc.c @@ -48,7 +48,7 @@ /* constants */ -#define MAXKBDC MAX(NATKBDC, 1) +#define MAXKBDC MAX(NATKBDC, 1) /* XXX */ /* macros */ @@ -90,8 +90,6 @@ static int wait_for_kbd_ack(atkbdc_softc_t *kbdc); static int wait_for_aux_data(atkbdc_softc_t *kbdc); static int wait_for_aux_ack(atkbdc_softc_t *kbdc); -#if NATKBDC > 0 - atkbdc_softc_t *atkbdc_get_softc(int unit) { @@ -125,8 +123,6 @@ atkbdc_attach_unit(int unit, atkbdc_softc_t *sc, int port) return atkbdc_setup(sc, port); } -#endif /* NATKBDC > 0 */ - /* the backdoor to the keyboard controller! XXX */ int atkbdc_configure(void) |