Don't call cdevsw_add().
This commit is contained in:
parent
044e35c351
commit
efd1585a7a
@ -469,14 +469,9 @@ zsc_tlsb_probe(device_t dev)
|
||||
static int
|
||||
zsc_tlsb_attach(device_t dev)
|
||||
{
|
||||
static int once = 1;
|
||||
struct zsc_softc *sc = device_get_softc(dev);
|
||||
device_t parent = device_get_parent(dev);
|
||||
|
||||
if (once) {
|
||||
once = 0;
|
||||
cdevsw_add(&zs_cdevsw);
|
||||
}
|
||||
bus_generic_attach(dev);
|
||||
|
||||
/* XXX */
|
||||
|
@ -854,22 +854,6 @@ static struct cdevsw bktr_cdevsw =
|
||||
NULL, -1
|
||||
};
|
||||
|
||||
static int bktr_devsw_installed;
|
||||
|
||||
static void
|
||||
bktr_drvinit( void *unused )
|
||||
{
|
||||
dev_t dev;
|
||||
|
||||
if ( ! bktr_devsw_installed ) {
|
||||
dev = makedev(CDEV_MAJOR, 0);
|
||||
cdevsw_add(&dev,&bktr_cdevsw, NULL);
|
||||
bktr_devsw_installed = 1;
|
||||
}
|
||||
}
|
||||
|
||||
SYSINIT(bktrdev,SI_SUB_DRIVERS,SI_ORDER_MIDDLE+CDEV_MAJOR,bktr_drvinit,NULL)
|
||||
|
||||
/*
|
||||
* the boot time probe routine.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user