diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2009-10-29 12:17:02 -0400 | 
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-10-29 12:17:02 -0400 | 
| commit | 066455d471e997adbcc98dda62eaf461e8b6556e (patch) | |
| tree | 4d9b6fb879dff695fa242702d7c4635687ae829d /drivers/pci/setup-bus.c | |
| parent | ea38280c2a6e22997cf05bfea0d9391ddea1da24 (diff) | |
| parent | 55a1098476619d5d8f4cdae7240ea759274dead7 (diff) | |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jbarnes/pci-2.6
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jbarnes/pci-2.6:
  Revert "PCI: get larger bridge ranges when space is available"
Diffstat (limited to 'drivers/pci/setup-bus.c')
| -rw-r--r-- | drivers/pci/setup-bus.c | 13 | 
1 files changed, 2 insertions, 11 deletions
| diff --git a/drivers/pci/setup-bus.c b/drivers/pci/setup-bus.c index 0959430534b2..cb1a027eb552 100644 --- a/drivers/pci/setup-bus.c +++ b/drivers/pci/setup-bus.c | |||
| @@ -299,17 +299,8 @@ static struct resource *find_free_bus_resource(struct pci_bus *bus, unsigned lon | |||
| 299 | r = bus->resource[i]; | 299 | r = bus->resource[i]; | 
| 300 | if (r == &ioport_resource || r == &iomem_resource) | 300 | if (r == &ioport_resource || r == &iomem_resource) | 
| 301 | continue; | 301 | continue; | 
| 302 | if (r && (r->flags & type_mask) == type) { | 302 | if (r && (r->flags & type_mask) == type && !r->parent) | 
| 303 | if (!r->parent) | 303 | return r; | 
| 304 | return r; | ||
| 305 | /* | ||
| 306 | * if there is no child under that, we should release | ||
| 307 | * and use it. don't need to reset it, pbus_size_* will | ||
| 308 | * set it again | ||
| 309 | */ | ||
| 310 | if (!r->child && !release_resource(r)) | ||
| 311 | return r; | ||
| 312 | } | ||
| 313 | } | 304 | } | 
| 314 | return NULL; | 305 | return NULL; | 
| 315 | } | 306 | } | 
