search for: pci_all_res

Displaying 2 results from an estimated 2 matches for "pci_all_res".

2013 Mar 13
1
[PATCH v3 20/27] PCI, xen: Use for_each_pci_resource() with xen pci
...a/drivers/pci/xen-pcifront.c +++ b/drivers/pci/xen-pcifront.c @@ -395,9 +395,7 @@ static int pcifront_claim_resource(struct pci_dev *dev, void *data) int i; struct resource *r; - for (i = 0; i < PCI_NUM_RESOURCES; i++) { - r = &dev->resource[i]; - + for_each_pci_resource(dev, r, i, PCI_ALL_RES) { if (!r->parent && r->start && r->flags) { dev_info(&pdev->xdev->dev, "claiming resource %s/%d\n", pci_name(dev), i); -- 1.7.10.4
2013 Mar 13
1
[PATCH v3 20/27] PCI, xen: Use for_each_pci_resource() with xen pci
...a/drivers/pci/xen-pcifront.c +++ b/drivers/pci/xen-pcifront.c @@ -395,9 +395,7 @@ static int pcifront_claim_resource(struct pci_dev *dev, void *data) int i; struct resource *r; - for (i = 0; i < PCI_NUM_RESOURCES; i++) { - r = &dev->resource[i]; - + for_each_pci_resource(dev, r, i, PCI_ALL_RES) { if (!r->parent && r->start && r->flags) { dev_info(&pdev->xdev->dev, "claiming resource %s/%d\n", pci_name(dev), i); -- 1.7.10.4