aboutsummaryrefslogtreecommitdiff
path: root/drivers/pci/probe.c
diff options
context:
space:
mode:
authorGravatar Ira Weiny <ira.weiny@intel.com> 2022-07-19 13:52:45 -0700
committerGravatar Dan Williams <dan.j.williams@intel.com> 2022-07-19 15:38:04 -0700
commitb559afd53afed0e04035907e4ec457f28eb4cc40 (patch)
treebb3f327c7ae64dcfc6555c0df3e3e8b54a6e79f1 /drivers/pci/probe.c
parentPCI: Add vendor ID for the PCI SIG (diff)
downloadlinux-b559afd53afed0e04035907e4ec457f28eb4cc40.tar.gz
linux-b559afd53afed0e04035907e4ec457f28eb4cc40.tar.bz2
linux-b559afd53afed0e04035907e4ec457f28eb4cc40.zip
PCI: Replace magic constant for PCI Sig Vendor ID
Replace the magic value in pci_bus_crs_vendor_id() with PCI_VENDOR_ID_PCI_SIG. Reviewed-by: Dan Williams <dan.j.williams@intel.com> Reviewed-by: Davidlohr Bueso <dave@stgolabs.net> Suggested-by: Bjorn Helgaas <bhelgaas@google.com> Acked-by: Bjorn Helgaas <bhelgaas@google.com> Signed-off-by: Ira Weiny <ira.weiny@intel.com> Link: https://lore.kernel.org/r/20220719205249.566684-3-ira.weiny@intel.com Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/pci/probe.c')
-rw-r--r--drivers/pci/probe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c
index 17a969942d37..6280e780a48c 100644
--- a/drivers/pci/probe.c
+++ b/drivers/pci/probe.c
@@ -2312,7 +2312,7 @@ EXPORT_SYMBOL(pci_alloc_dev);
static bool pci_bus_crs_vendor_id(u32 l)
{
- return (l & 0xffff) == 0x0001;
+ return (l & 0xffff) == PCI_VENDOR_ID_PCI_SIG;
}
static bool pci_bus_wait_crs(struct pci_bus *bus, int devfn, u32 *l,