diff options
-rw-r--r-- | sys/dev/snp/snp.c | 9 | ||||
-rw-r--r-- | sys/kern/tty_snoop.c | 9 |
2 files changed, 2 insertions, 16 deletions
diff --git a/sys/dev/snp/snp.c b/sys/dev/snp/snp.c index 9105e26..84ad3ad 100644 --- a/sys/dev/snp/snp.c +++ b/sys/dev/snp/snp.c @@ -16,9 +16,6 @@ */ #include "snp.h" - -#if NSNP > 0 - #include "opt_compat.h" #include <sys/param.h> #include <sys/systm.h> @@ -519,12 +516,8 @@ snp_drvinit(unused) { int i; - cdevsw_add(&snp_cdevsw); - for ( i = 0 ; i < NSNP ; i++) + for (i = 0; i < NSNP; i++) make_dev(&snp_cdevsw, i, 0, 0, 0600, "snp%d", i); } SYSINIT(snpdev,SI_SUB_DRIVERS,SI_ORDER_MIDDLE+CDEV_MAJOR,snp_drvinit,NULL) - - -#endif diff --git a/sys/kern/tty_snoop.c b/sys/kern/tty_snoop.c index 9105e26..84ad3ad 100644 --- a/sys/kern/tty_snoop.c +++ b/sys/kern/tty_snoop.c @@ -16,9 +16,6 @@ */ #include "snp.h" - -#if NSNP > 0 - #include "opt_compat.h" #include <sys/param.h> #include <sys/systm.h> @@ -519,12 +516,8 @@ snp_drvinit(unused) { int i; - cdevsw_add(&snp_cdevsw); - for ( i = 0 ; i < NSNP ; i++) + for (i = 0; i < NSNP; i++) make_dev(&snp_cdevsw, i, 0, 0, 0600, "snp%d", i); } SYSINIT(snpdev,SI_SUB_DRIVERS,SI_ORDER_MIDDLE+CDEV_MAJOR,snp_drvinit,NULL) - - -#endif |