diff options
author | Bjorn Helgaas <bhelgaas@google.com> | 2014-02-26 19:25:57 +0100 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2014-02-26 22:41:17 +0100 |
commit | d2e074ccbf84e91819ae07b3ca838120db2c97a9 (patch) | |
tree | 3234d2a5f5417d6ca51d99dbe59314cde7912575 /scripts/Makefile.modbuiltin | |
parent | i2o: Refactor i2o_iop_systab_set() PCI space allocation (diff) | |
download | linux-d2e074ccbf84e91819ae07b3ca838120db2c97a9.tar.xz linux-d2e074ccbf84e91819ae07b3ca838120db2c97a9.zip |
i2o: Use pci_bus_alloc_resource(), not allocate_resource() directly
Convert i2o_res_alloc() to use pci_bus_alloc_resource() rather than
pci_find_parent_resource() and allocate_resource(). We don't have a
resource to start with, so pci_find_parent_resource() can't do anything
useful: a bus may have several memory resources available, so there might
be several possible parents. This is more likely on root buses because
host bridges may have any number of apertures.
I'm pretty sure this didn't work in the first place because it passed
size == min == max to allocate_resource(). The min and max parameters are
constraints on the *addresses* of the resource, not on its size, so I think
it was impossible for allocate_resource() to succeed.
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'scripts/Makefile.modbuiltin')
0 files changed, 0 insertions, 0 deletions