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 | |
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')
-rw-r--r-- | sys/dev/digi/digi.c | 20 | ||||
-rw-r--r-- | sys/dev/digi/digi.h | 1 | ||||
-rw-r--r-- | sys/dev/digi/digi_isa.c | 3 | ||||
-rw-r--r-- | sys/dev/digi/digi_pci.c | 3 |
4 files changed, 0 insertions, 27 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) { diff --git a/sys/dev/digi/digi.h b/sys/dev/digi/digi.h index cba2e1c..cabe42a 100644 --- a/sys/dev/digi/digi.h +++ b/sys/dev/digi/digi.h @@ -211,7 +211,6 @@ extern const struct digi_control_signals digi_xixe_signals; extern const struct digi_control_signals digi_normal_signals; const char *digi_errortxt(int _id); -int digi_modhandler(module_t _mod, int _event, void *_arg); int digi_attach(struct digi_softc *); int digi_detach(device_t _dev); int digi_shutdown(device_t _dev); diff --git a/sys/dev/digi/digi_isa.c b/sys/dev/digi/digi_isa.c index 4c72226..5e10c0f 100644 --- a/sys/dev/digi/digi_isa.c +++ b/sys/dev/digi/digi_isa.c @@ -469,6 +469,3 @@ static driver_t digi_isa_drv = { digi_isa_methods, sizeof(struct digi_softc), }; - - -DRIVER_MODULE(digi, isa, digi_isa_drv, digi_devclass, digi_modhandler, 0); diff --git a/sys/dev/digi/digi_pci.c b/sys/dev/digi/digi_pci.c index 3ab8d11..403d641 100644 --- a/sys/dev/digi/digi_pci.c +++ b/sys/dev/digi/digi_pci.c @@ -225,6 +225,3 @@ static driver_t digi_pci_drv = { digi_pci_methods, sizeof(struct digi_softc), }; - - -DRIVER_MODULE(digi, pci, digi_pci_drv, digi_devclass, digi_modhandler, 0); |