diff --git a/sys/i4b/driver/i4b_ctl.c b/sys/i4b/driver/i4b_ctl.c index bafe362536d1..9a2b789bf97a 100644 --- a/sys/i4b/driver/i4b_ctl.c +++ b/sys/i4b/driver/i4b_ctl.c @@ -41,10 +41,6 @@ #include #include -#ifdef DEVFS -#include -#endif - #include #include @@ -81,17 +77,6 @@ static struct cdevsw i4bctl_cdevsw = { static void i4bctlattach(void *); PSEUDO_SET(i4bctlattach, i4b_i4bctldrv); -/*---------------------------------------------------------------------------* - * initialization at kernel load time - *---------------------------------------------------------------------------*/ -static void -i4bctlinit(void *unused) -{ - cdevsw_add(&i4bctl_cdevsw); -} - -SYSINIT(i4bctldev, SI_SUB_DRIVERS,SI_ORDER_MIDDLE+CDEV_MAJOR, &i4bctlinit, NULL); - /*---------------------------------------------------------------------------* * interface attach routine *---------------------------------------------------------------------------*/ diff --git a/sys/i4b/driver/i4b_rbch.c b/sys/i4b/driver/i4b_rbch.c index 3b85c9a2b92e..10b9add3f70e 100644 --- a/sys/i4b/driver/i4b_rbch.c +++ b/sys/i4b/driver/i4b_rbch.c @@ -47,10 +47,6 @@ #include -#ifdef DEVFS -#include -#endif - #include #include #include @@ -139,18 +135,6 @@ PSEUDO_SET(i4brbchattach, i4b_rbch); * DEVICE DRIVER ROUTINES *===========================================================================*/ -/*---------------------------------------------------------------------------* - * initialization at kernel load time - *---------------------------------------------------------------------------*/ -static void -i4brbchinit(void *unused) -{ - cdevsw_add(&i4brbch_cdevsw); -} - -SYSINIT(i4brbchdev, SI_SUB_DRIVERS, - SI_ORDER_MIDDLE+CDEV_MAJOR, &i4brbchinit, NULL); - /*---------------------------------------------------------------------------* * interface attach routine *---------------------------------------------------------------------------*/ diff --git a/sys/i4b/driver/i4b_tel.c b/sys/i4b/driver/i4b_tel.c index 22a1dc1d8581..b4e54d814a48 100644 --- a/sys/i4b/driver/i4b_tel.c +++ b/sys/i4b/driver/i4b_tel.c @@ -49,10 +49,6 @@ #include #include -#ifdef DEVFS -#include -#endif - #include #include #include @@ -155,7 +151,6 @@ static struct cdevsw i4btel_cdevsw = { /* flags */ 0, }; -static void i4btelinit(void *unused); static void i4btelattach(void *); PSEUDO_SET(i4btelattach, i4b_tel); @@ -164,18 +159,6 @@ PSEUDO_SET(i4btelattach, i4b_tel); * DEVICE DRIVER ROUTINES *===========================================================================*/ -/*---------------------------------------------------------------------------* - * initialization at kernel load time - *---------------------------------------------------------------------------*/ -static void -i4btelinit(void *unused) -{ - cdevsw_add(&i4btel_cdevsw); -} - -SYSINIT(i4bteldev, SI_SUB_DRIVERS, - SI_ORDER_MIDDLE+CDEV_MAJOR, &i4btelinit, NULL); - /*---------------------------------------------------------------------------* * interface attach routine *---------------------------------------------------------------------------*/ diff --git a/sys/i4b/driver/i4b_trace.c b/sys/i4b/driver/i4b_trace.c index 2fc244382b83..fe374d8c8165 100644 --- a/sys/i4b/driver/i4b_trace.c +++ b/sys/i4b/driver/i4b_trace.c @@ -48,10 +48,6 @@ #include #include -#ifdef DEVFS -#include -#endif - #include #include @@ -95,18 +91,6 @@ static struct cdevsw i4btrc_cdevsw = { /* flags */ 0, }; -/*---------------------------------------------------------------------------* - * interface init routine - *---------------------------------------------------------------------------*/ -static -void i4btrcinit(void *unused) -{ - cdevsw_add(&i4btrc_cdevsw); -} - -SYSINIT(i4btrcdev, SI_SUB_DRIVERS, - SI_ORDER_MIDDLE+CDEV_MAJOR, &i4btrcinit, NULL); - static void i4btrcattach(void *); PSEUDO_SET(i4btrcattach, i4b_trace); diff --git a/sys/i4b/layer4/i4b_i4bdrv.c b/sys/i4b/layer4/i4b_i4bdrv.c index 1dffc0f4625d..2f31608509fe 100644 --- a/sys/i4b/layer4/i4b_i4bdrv.c +++ b/sys/i4b/layer4/i4b_i4bdrv.c @@ -51,10 +51,6 @@ #include "i4bing.h" #include "i4bisppp.h" -#ifdef DEVFS -#include -#endif - #include #include #include @@ -101,14 +97,6 @@ static struct cdevsw i4b_cdevsw = { static void i4battach(void *); PSEUDO_SET(i4battach, i4b_i4bdrv); -static void -i4b_drvinit(void *unused) -{ - cdevsw_add(&i4b_cdevsw); -} - -SYSINIT(i4bdev,SI_SUB_DRIVERS,SI_ORDER_MIDDLE+CDEV_MAJOR,i4b_drvinit,NULL) - /*---------------------------------------------------------------------------* * interface attach routine *---------------------------------------------------------------------------*/