summaryrefslogtreecommitdiffstats
path: root/drivers/pci/pci.c
diff options
context:
space:
mode:
authorBjorn Helgaas <bhelgaas@google.com>2023-04-20 23:16:34 +0200
committerBjorn Helgaas <bhelgaas@google.com>2023-04-20 23:16:34 +0200
commit1c03b5bfc59ec1c36c68c0a26c69dee81369e8fa (patch)
treefabdbf1b488d4913c4a402ba9eaf44ec6470ca2d /drivers/pci/pci.c
parentMerge branch 'pci/reset' (diff)
parentEISA: Drop unused pci_bus_for_each_resource() index argument (diff)
downloadlinux-1c03b5bfc59ec1c36c68c0a26c69dee81369e8fa.tar.xz
linux-1c03b5bfc59ec1c36c68c0a26c69dee81369e8fa.zip
Merge branch 'pci/resource'
- Add pci_dev_for_each_resource() and pci_bus_for_each_resource() iterators to simplify loops (Andy Shevchenko) * pci/resource: EISA: Drop unused pci_bus_for_each_resource() index argument PCI: Make pci_bus_for_each_resource() index optional PCI: Document pci_bus_for_each_resource() PCI: Introduce pci_dev_for_each_resource() PCI: Introduce pci_resource_n()
Diffstat (limited to 'drivers/pci/pci.c')
-rw-r--r--drivers/pci/pci.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c
index 0b4f3b08f780..199024beaee9 100644
--- a/drivers/pci/pci.c
+++ b/drivers/pci/pci.c
@@ -787,9 +787,8 @@ struct resource *pci_find_parent_resource(const struct pci_dev *dev,
{
const struct pci_bus *bus = dev->bus;
struct resource *r;
- int i;
- pci_bus_for_each_resource(bus, r, i) {
+ pci_bus_for_each_resource(bus, r) {
if (!r)
continue;
if (resource_contains(r, res)) {