diff options
author | John Baldwin <jhb@FreeBSD.org> | 2022-04-19 17:43:06 +0000 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2022-04-19 17:43:57 +0000 |
commit | 2a99dd30dfaac98fea79f084b3a13c45199e1348 (patch) | |
tree | 6a04f02c50af8a2b5897d8e35c3665f15150f93f /share/man/man9/driver.9 | |
parent | 5bdea8826bdd48e2221f1b436ce86021ede412f2 (diff) | |
download | src-2a99dd30dfaac98fea79f084b3a13c45199e1348.tar.gz src-2a99dd30dfaac98fea79f084b3a13c45199e1348.zip |
Deprecate the 'devclass' argument from *DRIVER_MODULE() macros.
This argument is useless for the vast majority of drivers. For now,
use __VA_ARGS__ wrapper macros so that that the *DRIVER_MODULE()
macros accept both the old version (with a devclass) and the new
version (which omits the argument and stores NULL in the
driver_module_data structure). This provides an API compatiblity
shim that can be merged to older stable branches.
Once all drivers relevant to 14.0 (both in and out of tree) have been
updated, the API compat shims can be dropped.
Reviewed by: imp
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D34963
Diffstat (limited to 'share/man/man9/driver.9')
-rw-r--r-- | share/man/man9/driver.9 | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/share/man/man9/driver.9 b/share/man/man9/driver.9 index e801a188c732..d9d7b48c7863 100644 --- a/share/man/man9/driver.9 +++ b/share/man/man9/driver.9 @@ -67,9 +67,7 @@ static driver_t foo_driver = { sizeof(struct foo_softc) }; -static devclass_t foo_devclass; - -DRIVER_MODULE(foo, bogo, foo_driver, foo_devclass, NULL, NULL); +DRIVER_MODULE(foo, bogo, foo_driver, NULL, NULL); .Ed .Sh DESCRIPTION Each driver in the kernel is described by a |