The PNP info has to follow the module definition. Move it from just

after the array to its proper location. Otherwise, the linker.hints
file has things out of order and we associated it with whatever was
the previous module.
This commit is contained in:
Warner Losh 2018-03-25 16:56:49 +00:00
parent 9a3d0cf097
commit b722027307
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=331532

View File

@ -79,8 +79,6 @@ static struct pciid {
{ 0x14561022, "AMD CCP-5a" },
{ 0x14681022, "AMD CCP-5b" },
};
MODULE_PNP_INFO("W32:vendor/device", pci, ccp, ccp_ids, sizeof(ccp_ids[0]),
nitems(ccp_ids));
static struct random_source random_ccp = {
.rs_ident = "AMD CCP TRNG",
@ -783,6 +781,8 @@ DRIVER_MODULE(ccp, pci, ccp_driver, ccp_devclass, NULL, NULL);
MODULE_VERSION(ccp, 1);
MODULE_DEPEND(ccp, crypto, 1, 1, 1);
MODULE_DEPEND(ccp, random_device, 1, 1, 1);
MODULE_PNP_INFO("W32:vendor/device", pci, ccp, ccp_ids, sizeof(ccp_ids[0]),
nitems(ccp_ids));
static int
ccp_queue_reserve_space(struct ccp_queue *qp, unsigned n, int mflags)