1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-14 10:09:48 +00:00

NODEVFS cleanup: Don't call cdevsw_{add,remove}()

This commit is contained in:
Poul-Henning Kamp 2003-02-26 21:04:51 +00:00
parent f400e58886
commit e3163ad47d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=111574

View File

@ -366,7 +366,6 @@ nsmb_dev_load(module_t mod, int cmd, void *arg)
smb_sm_done();
break;
}
cdevsw_add(&nsmb_cdevsw);
nsmb_dev_tag = EVENTHANDLER_REGISTER(dev_clone, nsmb_dev_clone, 0, 1000);
printf("netsmb_dev: loaded\n");
break;
@ -375,7 +374,6 @@ nsmb_dev_load(module_t mod, int cmd, void *arg)
error = smb_sm_done();
error = 0;
EVENTHANDLER_DEREGISTER(dev_clone, nsmb_dev_tag);
cdevsw_remove(&nsmb_cdevsw);
printf("netsmb_dev: unloaded\n");
break;
default: