]> www.infradead.org Git - users/jedix/linux-maple.git/commit
PCI: Add pci_find_bus_resource()
authorYinghai Lu <yinghai@kernel.org>
Sat, 18 Jun 2016 02:24:50 +0000 (19:24 -0700)
committerChuck Anderson <chuck.anderson@oracle.com>
Sun, 28 May 2017 02:44:00 +0000 (19:44 -0700)
commit8c91f69e5dbc5b6c09cfd2aab444980952a09178
tree04496d96e0334f54ecdd8744883751d4ca04dff8
parent68ceaee84ca46c87336c4b48bc9ef8ba6dfa06fc
PCI: Add pci_find_bus_resource()

Add pci_find_bus_resource() to return bus resource for input resource.

In some case, we may only have bus instead of dev.
It is same as pci_find_parent_resource, but take bus as input.

Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Orabug: 22855133

Signed-off-by: Khalid Aziz <khalid.aziz@oracle.com>
(cherry picked from commit 7f93fc77f440039967ee5a057d49644526a7879f)
Signed-off-by: Allen Pais <allen.pais@oracle.com>
drivers/pci/pci.c
include/linux/pci.h