diff options
author | Warner Losh <imp@FreeBSD.org> | 2018-03-25 16:56:49 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 2018-03-25 16:56:49 +0000 |
commit | b7220273073cd3b9c2d82a6fb3a0b5fc7145ce81 (patch) | |
tree | e5845449d1b60b04232dee2535529ef8080b235a /sys | |
parent | 9a3d0cf097ed11b6a2a548fe87b616c398146d73 (diff) | |
download | src-b7220273073cd3b9c2d82a6fb3a0b5fc7145ce81.tar.gz src-b7220273073cd3b9c2d82a6fb3a0b5fc7145ce81.zip |
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.
Notes
Notes:
svn path=/head/; revision=331532
Diffstat (limited to 'sys')
-rw-r--r-- | sys/crypto/ccp/ccp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/crypto/ccp/ccp.c b/sys/crypto/ccp/ccp.c index 4fc194b270fa..e50407a8f599 100644 --- a/sys/crypto/ccp/ccp.c +++ b/sys/crypto/ccp/ccp.c @@ -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) |