diff options
author | Yuri Pankov <yuripv@FreeBSD.org> | 2018-10-11 22:27:12 +0000 |
---|---|---|
committer | Yuri Pankov <yuripv@FreeBSD.org> | 2018-10-11 22:27:12 +0000 |
commit | 937b0f2559d7f41d3734969b2ae3b5669df37c2a (patch) | |
tree | d55a68255dc4e208ca438cc76844f598aa7b62fc /sys/dev | |
parent | e571849ddac0c8fdedf6015979ece18ae148505f (diff) | |
download | src-937b0f2559d7f41d3734969b2ae3b5669df37c2a.tar.gz src-937b0f2559d7f41d3734969b2ae3b5669df37c2a.zip |
Fix PNP entries for if_ix and if_ixv properly using the IFLIB_PNP_INFO()
macro.
Reviewed by: imp, sbruno
Approved by: re (gjb), kib (mentor)
Differential Revision: https://reviews.freebsd.org/D17473
Notes
Notes:
svn path=/head/; revision=339319
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/ixgbe/if_ix.c | 4 | ||||
-rw-r--r-- | sys/dev/ixgbe/if_ixv.c | 3 |
2 files changed, 2 insertions, 5 deletions
diff --git a/sys/dev/ixgbe/if_ix.c b/sys/dev/ixgbe/if_ix.c index 44843ff3fc98..e2b1a4fd8722 100644 --- a/sys/dev/ixgbe/if_ix.c +++ b/sys/dev/ixgbe/if_ix.c @@ -237,9 +237,7 @@ static driver_t ix_driver = { devclass_t ix_devclass; DRIVER_MODULE(ix, pci, ix_driver, ix_devclass, 0, 0); -MODULE_PNP_INFO("U16:vendor;U16:device", pci, ix, ixgbe_vendor_info_array, - nitems(ixgbe_vendor_info_array) - 1); - +IFLIB_PNP_INFO(pci, ix_driver, ixgbe_vendor_info_array); MODULE_DEPEND(ix, pci, 1, 1, 1); MODULE_DEPEND(ix, ether, 1, 1, 1); MODULE_DEPEND(ix, iflib, 1, 1, 1); diff --git a/sys/dev/ixgbe/if_ixv.c b/sys/dev/ixgbe/if_ixv.c index 91f2f8ef755e..6e9acd6d601e 100644 --- a/sys/dev/ixgbe/if_ixv.c +++ b/sys/dev/ixgbe/if_ixv.c @@ -143,8 +143,7 @@ static driver_t ixv_driver = { devclass_t ixv_devclass; DRIVER_MODULE(ixv, pci, ixv_driver, ixv_devclass, 0, 0); -MODULE_PNP_INFO("U16:vendor;U16:device", pci, ixv, ixv_vendor_info_array, - nitems(ixv_vendor_info_array) - 1); +IFLIB_PNP_INFO(pci, ixv_driver, ixv_vendor_info_array); MODULE_DEPEND(ixv, pci, 1, 1, 1); MODULE_DEPEND(ixv, ether, 1, 1, 1); #ifdef DEV_NETMAP |