Add PNP info to PCI attachment of an driver

Reviewed by: imp, chuck
Submitted by: Lakhan Shiva Kamireddy <lakhanshiva@gmail.com>
Sponsored by: Google, Inc. (GSoC 2018)
This commit is contained in:
Warner Losh 2018-06-13 20:25:09 +00:00
parent 491589f3af
commit 769ac9e65b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=335080

View File

@ -273,5 +273,7 @@ static driver_t an_pci_driver = {
static devclass_t an_devclass;
DRIVER_MODULE(an, pci, an_pci_driver, an_devclass, 0, 0);
MODULE_PNP_INFO("U16:vendor;U16:device;D:#", pci, an,
an_devs, sizeof(an_devs[0]), nitems(an_devs) - 1);
MODULE_DEPEND(an, pci, 1, 1, 1);
MODULE_DEPEND(an, wlan, 1, 1, 1);