diff options
author | phk <phk@FreeBSD.org> | 2001-11-04 15:52:44 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2001-11-04 15:52:44 +0000 |
commit | a027fe1776ddd863021e61f3f6d5f3f84276f377 (patch) | |
tree | c38815f69979104221767298bcead9ff402d859c /sys/dev/digi/digi.c | |
parent | 90fe79e3c5aa60e7a33f2d8bb3699c63bbe0d87d (diff) | |
download | FreeBSD-src-a027fe1776ddd863021e61f3f6d5f3f84276f377.zip FreeBSD-src-a027fe1776ddd863021e61f3f6d5f3f84276f377.tar.gz |
devsw_add() and cdevsw_remove() are no longer needed.
Diffstat (limited to 'sys/dev/digi/digi.c')
-rw-r--r-- | sys/dev/digi/digi.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/sys/dev/digi/digi.c b/sys/dev/digi/digi.c index 0231bee..d6bd40a 100644 --- a/sys/dev/digi/digi.c +++ b/sys/dev/digi/digi.c @@ -157,26 +157,6 @@ static struct cdevsw digi_sw = { ttykqfilter /* bmaj */ }; -int -digi_modhandler(module_t mod, int event, void *arg) -{ - static int ref = 0; - - switch (event) { - case MOD_LOAD: - if (ref++ == 0) - cdevsw_add(&digi_sw); - break; - - case MOD_UNLOAD: - if (--ref == 0) - cdevsw_remove(&digi_sw); - break; - } - - return (0); -} - static void digi_poll(void *ptr) { |