From: Ilpo Järvinen Date: Wed, 16 Apr 2025 10:02:39 +0000 (+0300) Subject: PCI: Use PCI_STD_NUM_BARS instead of 6 X-Git-Tag: v6.16-rc1~50^2~23^2~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5fe8d08139280a552bb3e8471284362c65c5b032;p=thirdparty%2Fkernel%2Flinux.git PCI: Use PCI_STD_NUM_BARS instead of 6 pci_read_bases() is given literal 6 that means PCI_STD_NUM_BARS. Replace the literal with the define to annotate the code better. Signed-off-by: Ilpo Järvinen Signed-off-by: Bjorn Helgaas Reviewed-by: Niklas Cassel Link: https://patch.msgid.link/20250416100239.6958-1-ilpo.jarvinen@linux.intel.com --- diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c index 364fa2a514f8a..08971fca08193 100644 --- a/drivers/pci/probe.c +++ b/drivers/pci/probe.c @@ -2058,7 +2058,7 @@ int pci_setup_device(struct pci_dev *dev) if (class == PCI_CLASS_BRIDGE_PCI) goto bad; pci_read_irq(dev); - pci_read_bases(dev, 6, PCI_ROM_ADDRESS); + pci_read_bases(dev, PCI_STD_NUM_BARS, PCI_ROM_ADDRESS); pci_subsystem_ids(dev, &dev->subsystem_vendor, &dev->subsystem_device);