diff options
author | Peter Wemm <peter@FreeBSD.org> | 1999-11-08 07:14:07 +0000 |
---|---|---|
committer | Peter Wemm <peter@FreeBSD.org> | 1999-11-08 07:14:07 +0000 |
commit | 3320884f37ee7cd763fd0c496b1392bf289e0a07 (patch) | |
tree | dcb597a166b67fcd859c204b4bf4ccb12716013a /sys/sys/bus.h | |
parent | bda20b64e4cecefbaa90ecea08a7897a6d351362 (diff) | |
download | src-3320884f37ee7cd763fd0c496b1392bf289e0a07.tar.gz src-3320884f37ee7cd763fd0c496b1392bf289e0a07.zip |
Don't let drivers that use DEV_DRIVER_MODULE() compile as they won't
work and will leave a system stranded.
Notes
Notes:
svn path=/head/; revision=52994
Diffstat (limited to 'sys/sys/bus.h')
-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 8f50f3e1830e..124ef627eb33 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 */ |