Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 167381
b: refs/heads/master
c: b812cca
h: refs/heads/master
i:
  167379: 1aeb182
v: v3
  • Loading branch information
Bjorn Helgaas authored and Jesse Barnes committed Oct 6, 2009
1 parent ebe4d45 commit 4048dbf
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 38 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e3fb20f9c8783d6e27cf84389a9606e410733eef
refs/heads/master: b812cca4e2efe9a05de20ccf3f8587e7ac6e12fa
37 changes: 0 additions & 37 deletions trunk/drivers/pci/setup-res.c
Original file line number Diff line number Diff line change
Expand Up @@ -205,43 +205,6 @@ int pci_assign_resource(struct pci_dev *dev, int resno)
return ret;
}

#if 0
int pci_assign_resource_fixed(struct pci_dev *dev, int resno)
{
struct pci_bus *bus = dev->bus;
struct resource *res = dev->resource + resno;
unsigned int type_mask;
int i, ret = -EBUSY;

type_mask = IORESOURCE_IO | IORESOURCE_MEM | IORESOURCE_PREFETCH;

for (i = 0; i < PCI_BUS_NUM_RESOURCES; i++) {
struct resource *r = bus->resource[i];
if (!r)
continue;

/* type_mask must match */
if ((res->flags ^ r->flags) & type_mask)
continue;

ret = request_resource(r, res);

if (ret == 0)
break;
}

if (ret) {
dev_err(&dev->dev, "BAR %d: can't allocate %s resource %pR\n",
resno, res->flags & IORESOURCE_IO ? "I/O" : "mem", res);
} else if (resno < PCI_BRIDGE_RESOURCES) {
pci_update_resource(dev, resno);
}

return ret;
}
EXPORT_SYMBOL_GPL(pci_assign_resource_fixed);
#endif

/* Sort resources by alignment */
void pdev_sort_resources(struct pci_dev *dev, struct resource_list *head)
{
Expand Down

0 comments on commit 4048dbf

Please sign in to comment.