summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2010-11-18 21:15:16 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2010-11-18 21:15:16 +0000
commitd76fbed9b047b0950393d391f27749a20f6ec68a (patch)
tree02818a590fe865434e018b19d1bb8ca0c5b4c1f4 /sys/dev
parentbe90184410fe8aaf59012f30ea8aabcf3e8e800b (diff)
Don't
#include "foo.h" #if NFOO > 0 (whole file) #endif since config(8) file inclusion rules already do it for you. ok deraadt@
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/audio.c13
-rw-r--r--sys/dev/eisa/ahc_eisa.c8
-rw-r--r--sys/dev/ic/cy.c8
-rw-r--r--sys/dev/midi.c5
-rw-r--r--sys/dev/sequencer.c8
5 files changed, 8 insertions, 34 deletions
diff --git a/sys/dev/audio.c b/sys/dev/audio.c
index a6eed371916..d671ec4cfe0 100644
--- a/sys/dev/audio.c
+++ b/sys/dev/audio.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: audio.c,v 1.110 2010/09/21 20:08:11 jakemsr Exp $ */
+/* $OpenBSD: audio.c,v 1.111 2010/11/18 21:15:14 miod Exp $ */
/* $NetBSD: audio.c,v 1.119 1999/11/09 16:50:47 augustss Exp $ */
/*
@@ -61,9 +61,6 @@
* and silence fill.
*/
-#include "audio.h"
-#if NAUDIO > 0
-
#include <sys/param.h>
#include <sys/ioctl.h>
#include <sys/fcntl.h>
@@ -536,7 +533,6 @@ audio_attach_mi(struct audio_hw_if *ahwp, void *hdlp, struct device *dev)
return config_found(dev, &arg, audioprint);
}
-#if NAUDIO > 0
int
audioprint(void *aux, const char *pnp)
{
@@ -562,8 +558,6 @@ audioprint(void *aux, const char *pnp)
return (UNCONF);
}
-#endif /* NAUDIO > 0 */
-
#ifdef AUDIO_DEBUG
void audio_printsc(struct audio_softc *);
void audio_print_params(char *, struct audio_params *);
@@ -3296,7 +3290,6 @@ mixer_ioctl(dev_t dev, u_long cmd, caddr_t addr, int flag, struct proc *p)
IOCPARM_LEN(cmd), IOCGROUP(cmd), cmd&0xff, error));
return (error);
}
-#endif
int
audiokqfilter(dev_t dev, struct knote *kn)
@@ -3363,7 +3356,7 @@ filt_audiowrite(struct knote *kn, long hint)
return AUDIO_FILTWRITE(sc);
}
-#if NAUDIO > 0 && NWSKBD > 0
+#if NWSKBD > 0
int
wskbd_set_mixervolume(long dir)
{
@@ -3429,4 +3422,4 @@ wskbd_set_mixervolume(long dir)
return (0);
}
-#endif /* NAUDIO > 0 && NWSKBD > 0 */
+#endif /* NWSKBD > 0 */
diff --git a/sys/dev/eisa/ahc_eisa.c b/sys/dev/eisa/ahc_eisa.c
index 0226d074a89..393954d723a 100644
--- a/sys/dev/eisa/ahc_eisa.c
+++ b/sys/dev/eisa/ahc_eisa.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ahc_eisa.c,v 1.19 2009/03/29 21:53:52 sthen Exp $ */
+/* $OpenBSD: ahc_eisa.c,v 1.20 2010/11/18 21:15:15 miod Exp $ */
/* $NetBSD: ahc_eisa.c,v 1.10 1996/10/21 22:30:58 thorpej Exp $ */
/*
@@ -32,12 +32,9 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: ahc_eisa.c,v 1.19 2009/03/29 21:53:52 sthen Exp $
+ * $Id: ahc_eisa.c,v 1.20 2010/11/18 21:15:15 miod Exp $
*/
-#include "eisa.h"
-#if NEISA > 0
-
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/kernel.h>
@@ -327,4 +324,3 @@ void *aux;
ahc_attach(ahc);
}
-#endif /* NEISA > 0 */
diff --git a/sys/dev/ic/cy.c b/sys/dev/ic/cy.c
index afc7bef9c5c..8a2cf8712e7 100644
--- a/sys/dev/ic/cy.c
+++ b/sys/dev/ic/cy.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cy.c,v 1.32 2010/07/02 17:27:01 nicm Exp $ */
+/* $OpenBSD: cy.c,v 1.33 2010/11/18 21:15:15 miod Exp $ */
/*
* Copyright (c) 1996 Timo Rossi.
* All rights reserved.
@@ -50,10 +50,6 @@
*
*/
-/* NCY is the number of Cyclom cards in the machine */
-#include "cy.h"
-#if NCY > 0
-
#include <sys/types.h>
#include <sys/param.h>
#include <sys/ioctl.h>
@@ -1418,5 +1414,3 @@ cy_speed(speed_t speed, int *cor, int *bpr, int cy_clock)
return (-1);
}
-
-#endif /* NCY > 0 */
diff --git a/sys/dev/midi.c b/sys/dev/midi.c
index a6032faa670..fb909465f5d 100644
--- a/sys/dev/midi.c
+++ b/sys/dev/midi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: midi.c,v 1.22 2010/04/08 01:48:24 fgsch Exp $ */
+/* $OpenBSD: midi.c,v 1.23 2010/11/18 21:15:14 miod Exp $ */
/*
* Copyright (c) 2003, 2004 Alexandre Ratchov
@@ -24,9 +24,7 @@
* need this driver
*/
-#include "midi.h"
#include "sequencer.h"
-#if NMIDI > 0
#include <sys/param.h>
#include <sys/fcntl.h>
@@ -759,4 +757,3 @@ midi_writebytes(int unit, unsigned char *mesg, int mesglen)
}
#endif /* NSEQUENCER > 0 */
-#endif /* NMIDI > 0 */
diff --git a/sys/dev/sequencer.c b/sys/dev/sequencer.c
index 98bfe88c565..d1756d4c991 100644
--- a/sys/dev/sequencer.c
+++ b/sys/dev/sequencer.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sequencer.c,v 1.19 2009/11/09 17:53:39 nicm Exp $ */
+/* $OpenBSD: sequencer.c,v 1.20 2010/11/18 21:15:14 miod Exp $ */
/* $NetBSD: sequencer.c,v 1.13 1998/11/25 22:17:07 augustss Exp $ */
/*
@@ -30,9 +30,6 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
-#include "sequencer.h"
-#if NSEQUENCER > 0
-
#include <sys/param.h>
#include <sys/ioctl.h>
#include <sys/fcntl.h>
@@ -1283,6 +1280,3 @@ midi_writebytes(int unit, u_char *buf, int cc)
return (ENXIO);
}
#endif /* NMIDI == 0 */
-
-#endif /* NSEQUENCER > 0 */
-