These drivers have a sentinel at the end of the device list. Exclude

it.
This commit is contained in:
Warner Losh 2017-12-23 05:32:20 +00:00
parent 60419a9c89
commit a914e889e3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=327100
2 changed files with 2 additions and 2 deletions

View File

@ -1237,7 +1237,7 @@ MODULE_DEPEND(i915kms, iicbus, 1, 1, 1);
MODULE_DEPEND(i915kms, iic, 1, 1, 1);
MODULE_DEPEND(i915kms, iicbb, 1, 1, 1);
MODULE_PNP_INFO("U32:vendor;U32:device;P:#;D:#", vgapci, i915, pciidlist,
sizeof(pciidlist[0]), nitems(pciidlist));
sizeof(pciidlist[0]), nitems(pciidlist) - 1);
/* We give fast paths for the really cool registers */
#define NEEDS_FORCE_WAKE(dev_priv, reg) \

View File

@ -402,4 +402,4 @@ MODULE_DEPEND(radeonkms, iic, 1, 1, 1);
MODULE_DEPEND(radeonkms, iicbb, 1, 1, 1);
MODULE_DEPEND(radeonkms, firmware, 1, 1, 1);
MODULE_PNP_INFO("U32:vendor;U32:device;P:#;D:#", vgapci, radeonkms,
pciidlist, sizeof(pciidlist[0]), nitems(pciidlist));
pciidlist, sizeof(pciidlist[0]), nitems(pciidlist) - 1);