Use ldisc_[de]register() instead of frobbing linesw[] directly.
This commit is contained in:
parent
b1dabb2606
commit
3786c125c7
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=130202
@ -198,10 +198,11 @@ sl_modevent(module_t mod, int type, void *data)
|
||||
{
|
||||
switch (type) {
|
||||
case MOD_LOAD:
|
||||
linesw[SLIPDISC] = slipdisc;
|
||||
ldisc_register(SLIPDISC, &slipdisc);
|
||||
LIST_INIT(&sl_list);
|
||||
break;
|
||||
case MOD_UNLOAD:
|
||||
ldisc_deregister(SLIPDISC);
|
||||
printf("if_sl module unload - not possible for this module type\n");
|
||||
return EINVAL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user