NODEVFS cleanup:
Don't call cdevsw_{add,remove}() Remove remnants of the previous DEVFS.
This commit is contained in:
parent
b9a3a6e41a
commit
0f88e97ffc
@ -41,10 +41,6 @@
|
||||
#include <sys/socket.h>
|
||||
#include <net/if.h>
|
||||
|
||||
#ifdef DEVFS
|
||||
#include <sys/devfsext.h>
|
||||
#endif
|
||||
|
||||
#include <machine/i4b_debug.h>
|
||||
#include <machine/i4b_ioctl.h>
|
||||
|
||||
@ -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
|
||||
*---------------------------------------------------------------------------*/
|
||||
|
@ -47,10 +47,6 @@
|
||||
|
||||
#include <net/if.h>
|
||||
|
||||
#ifdef DEVFS
|
||||
#include <sys/devfsext.h>
|
||||
#endif
|
||||
|
||||
#include <machine/i4b_ioctl.h>
|
||||
#include <machine/i4b_rbch_ioctl.h>
|
||||
#include <machine/i4b_debug.h>
|
||||
@ -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
|
||||
*---------------------------------------------------------------------------*/
|
||||
|
@ -49,10 +49,6 @@
|
||||
#include <net/if.h>
|
||||
#include <sys/tty.h>
|
||||
|
||||
#ifdef DEVFS
|
||||
#include <sys/devfsext.h>
|
||||
#endif
|
||||
|
||||
#include <machine/i4b_ioctl.h>
|
||||
#include <machine/i4b_tel_ioctl.h>
|
||||
#include <machine/i4b_debug.h>
|
||||
@ -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
|
||||
*---------------------------------------------------------------------------*/
|
||||
|
@ -48,10 +48,6 @@
|
||||
#include <net/if.h>
|
||||
#include <sys/tty.h>
|
||||
|
||||
#ifdef DEVFS
|
||||
#include <sys/devfsext.h>
|
||||
#endif
|
||||
|
||||
#include <machine/i4b_trace.h>
|
||||
#include <machine/i4b_ioctl.h>
|
||||
|
||||
@ -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);
|
||||
|
||||
|
@ -51,10 +51,6 @@
|
||||
#include "i4bing.h"
|
||||
#include "i4bisppp.h"
|
||||
|
||||
#ifdef DEVFS
|
||||
#include <sys/devfsext.h>
|
||||
#endif
|
||||
|
||||
#include <machine/i4b_debug.h>
|
||||
#include <machine/i4b_ioctl.h>
|
||||
#include <machine/i4b_cause.h>
|
||||
@ -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
|
||||
*---------------------------------------------------------------------------*/
|
||||
|
Loading…
Reference in New Issue
Block a user