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/isa/psm.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/isa/psm.c')
-rw-r--r-- | sys/isa/psm.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/sys/isa/psm.c b/sys/isa/psm.c index 928e920..f2a4d91 100644 --- a/sys/isa/psm.c +++ b/sys/isa/psm.c @@ -61,11 +61,8 @@ * Vendor specific support routines. */ -#include "psm.h" #include "opt_psm.h" -#if NPSM > 0 - #include <sys/param.h> #include <sys/systm.h> #include <sys/kernel.h> @@ -1108,10 +1105,6 @@ psmopen(dev_t dev, int flag, int fmt, struct proc *p) int err; int s; - /* Validate unit number */ - if (unit >= NPSM) - return (ENXIO); - /* Get device data */ sc = PSM_SOFTC(unit); if ((sc == NULL) || (sc->state & PSM_VALID) == 0) @@ -2450,5 +2443,3 @@ psmresume(device_t dev) } DRIVER_MODULE(psm, atkbdc, psm_driver, psm_devclass, 0, 0); - -#endif /* NPSM > 0 */ |