summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1999-11-08 08:12:05 +0000
committerpeter <peter@FreeBSD.org>1999-11-08 08:12:05 +0000
commite5e0ffb3a7e3ab05c893142b7db80bfc589d21b8 (patch)
tree34280670dbdd617972550084b2a530f3ee50b368 /sys
parentf4f3e6b797912ea26d7c57a7b445cddff444026b (diff)
downloadFreeBSD-src-e5e0ffb3a7e3ab05c893142b7db80bfc589d21b8.zip
FreeBSD-src-e5e0ffb3a7e3ab05c893142b7db80bfc589d21b8.tar.gz
Zap DEV_DRIVER_MODULE(). The New world order is that drivers create their
dev nodes with make_dev() in a devfs-compatable way by supplying names. This doesn't fit into a compile-time scheme like DEV_DRIVER_MODULE, especially since the cdevsw[] array's days are numbered.
Diffstat (limited to 'sys')
-rw-r--r--sys/sys/bus.h16
1 files changed, 0 insertions, 16 deletions
diff --git a/sys/sys/bus.h b/sys/sys/bus.h
index 124ef62..365b6a6 100644
--- a/sys/sys/bus.h
+++ b/sys/sys/bus.h
@@ -362,22 +362,6 @@ static moduledata_t name##_##busname##_mod = { \
DECLARE_MODULE(name##_##busname, name##_##busname##_mod, \
SI_SUB_DRIVERS, SI_ORDER_MIDDLE)
-#if 0
-/*
- * Broken, to be replaced with DRIVER_MODULE() directly and cdevsw_add()
- * or (preferably) make_dev()
- */
-#define DEV_DRIVER_MODULE(name, busname, driver, devclass, \
- devsw, evh, arg) \
- \
-static struct devsw_module_data name##_##busname##_devsw_mod = { \
- evh, arg, &devsw \
-}; \
- \
-DRIVER_MODULE(name, busname, driver, devclass, \
- devsw_module_handler, &name##_##busname##_devsw_mod)
-#endif
-
#endif /* KERNEL */
#endif /* !_SYS_BUS_H_ */
OpenPOWER on IntegriCloud