Fix pci_claim_resource
authorMatthew Wilcox <willy@linux.intel.com>
Wed, 17 Jun 2009 20:33:33 +0000 (16:33 -0400)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 17 Jun 2009 21:04:42 +0000 (14:04 -0700)
commitcebd78a8c5624b5cf04c39c3335a5fc8670a7b69
tree426b2ef97ee950e11e231fff1286ae06cf1f3423
parent7cc47662197b3050a974a6c6aed52291bb38ded0
Fix pci_claim_resource

Instead of starting from the iomem or ioport roots, start from the
parent bus' resources.  This fixes a bug where child resources would
appear above their parents resources if they had the same size.

Signed-off-by: Matthew Wilcox <willy@linux.intel.com>
Tested-by: Andrew Patterson <andrew.patterson@hp.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/pci/setup-res.c