Author: imp
Date: Sun Mar 25 17:12:09 2018
New Revision: 331534
URL: https://svnweb.freebsd.org/changeset/base/331534
Log:
Note that MODULE_PNP_INFO has to come after a DRIVER_MODULE.
Modified:
head/share/man/man9/MODULE_PNP_INFO.9
Modified: head/share/man/man9/MODULE_PNP_INFO.9
==============================================================================
--- head/share/man/man9/MODULE_PNP_INFO.9 Sun Mar 25 16:57:21 2018
(r331533)
+++ head/share/man/man9/MODULE_PNP_INFO.9 Sun Mar 25 17:12:09 2018
(r331534)
@@ -49,6 +49,9 @@ macro registers a
.Fa table
of device-identifying data for use by
.Xr devmatch 8 .
+Since it is built off module marking macros, it must follow a
+.Xr DRIVER_MODULE 9
+line.
.Pp
The macro takes a
.Fa descriptor_string
@@ -164,6 +167,7 @@ static struct my_pciids {
{ 0x12345678, "Foo bar" },
{ 0x9abcdef0, "Baz fizz" },
};
+
MODULE_PNP_INFO("W32:vendor/device", pci, my_driver, my_ids, sizeof(my_ids[0]),
nitems(my_ids));
.Ed
@@ -176,7 +180,7 @@ MODULE_PNP_INFO("W32:vendor/device", pci, my_driver, m
The macro
.Nm
appeared in
-.Fx 12.0 .
+.Fx 11.0 .
.Sh AUTHORS
The PNP framework and
.Xr devmatch 8
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"