diff options
author | peter <peter@FreeBSD.org> | 1999-11-08 07:14:07 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1999-11-08 07:14:07 +0000 |
commit | 98626677f412c59270f3dbd35ac2d746724efa89 (patch) | |
tree | dcb597a166b67fcd859c204b4bf4ccb12716013a /sys | |
parent | 757541c04228afad0440f88d67730f6a8cc414dd (diff) | |
download | FreeBSD-src-98626677f412c59270f3dbd35ac2d746724efa89.zip FreeBSD-src-98626677f412c59270f3dbd35ac2d746724efa89.tar.gz |
Don't let drivers that use DEV_DRIVER_MODULE() compile as they won't
work and will leave a system stranded.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/sys/bus.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/sys/bus.h b/sys/sys/bus.h index 8f50f3e..124ef62 100644 --- a/sys/sys/bus.h +++ b/sys/sys/bus.h @@ -362,6 +362,11 @@ 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) \ \ @@ -371,6 +376,7 @@ static struct devsw_module_data name##_##busname##_devsw_mod = { \ \ DRIVER_MODULE(name, busname, driver, devclass, \ devsw_module_handler, &name##_##busname##_devsw_mod) +#endif #endif /* KERNEL */ |