Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 167385
b: refs/heads/master
c: 308cf8e
h: refs/heads/master
i:
  167383: d4fc864
v: v3
  • Loading branch information
Yinghai Lu authored and Jesse Barnes committed Oct 7, 2009
1 parent e1cc5b8 commit 3ba6a18
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 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: 19eea630f7c56038dd80fe2f6910c78655bf29c8
refs/heads/master: 308cf8e13f42f476dfd6552aeff58fdc0788e566
13 changes: 11 additions & 2 deletions trunk/drivers/pci/setup-bus.c
Original file line number Diff line number Diff line change
Expand Up @@ -299,8 +299,17 @@ static struct resource *find_free_bus_resource(struct pci_bus *bus, unsigned lon
r = bus->resource[i];
if (r == &ioport_resource || r == &iomem_resource)
continue;
if (r && (r->flags & type_mask) == type && !r->parent)
return r;
if (r && (r->flags & type_mask) == type) {
if (!r->parent)
return r;
/*
* if there is no child under that, we should release
* and use it. don't need to reset it, pbus_size_* will
* set it again
*/
if (!r->child && !release_resource(r))
return r;
}
}
return NULL;
}
Expand Down

0 comments on commit 3ba6a18

Please sign in to comment.