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.
This commit is contained in:
Peter Wemm 1999-11-08 08:12:05 +00:00
parent 900942ba53
commit 5dad867faf

View File

@ -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_ */