Zap cdevsw_add() - the make_dev's take care of it and don't use
the cdevsw[] array.
This commit is contained in:
parent
9e2a2cf3ab
commit
986eaaa550
@ -2756,13 +2756,3 @@ si_modulename(host_type, uart_type)
|
||||
}
|
||||
return("");
|
||||
}
|
||||
|
||||
static void
|
||||
si_drvinit(void *unused)
|
||||
{
|
||||
|
||||
cdevsw_add(&si_cdevsw);
|
||||
}
|
||||
|
||||
SYSINIT(sidev,SI_SUB_DRIVERS,SI_ORDER_MIDDLE+CDEV_MAJOR,si_drvinit,NULL)
|
||||
|
||||
|
@ -2756,13 +2756,3 @@ si_modulename(host_type, uart_type)
|
||||
}
|
||||
return("");
|
||||
}
|
||||
|
||||
static void
|
||||
si_drvinit(void *unused)
|
||||
{
|
||||
|
||||
cdevsw_add(&si_cdevsw);
|
||||
}
|
||||
|
||||
SYSINIT(sidev,SI_SUB_DRIVERS,SI_ORDER_MIDDLE+CDEV_MAJOR,si_drvinit,NULL)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user