UPSTREAM: PCI: Add devm_request_pci_bus_resources()
authorBjorn Helgaas <bhelgaas@google.com>
Sat, 28 May 2016 23:09:16 +0000 (18:09 -0500)
committerHuang, Tao <huangtao@rock-chips.com>
Wed, 24 Aug 2016 10:24:18 +0000 (18:24 +0800)
commit3c6d612196188074e0550dda0e3d4434cc60198d
tree26ba683db3d0eeadb79a95be0e0acf4f08bf3e66
parentd1328c43c5ec11fdb0184085b140b56a695a7055
UPSTREAM: PCI: Add devm_request_pci_bus_resources()

Several host bridge drivers iterate through the list of bridge windows to
request resources.  Several others don't request the window resources at
all.

Add a devm_request_pci_bus_resources() interface to make it easier for
drivers to request all the window resources.  Export to GPL modules (from
Arnd Bergmann <arnd@arndb.de>).

Change-Id: I4b89f0739d66d6027bfd2a01e9e93f5218ade617
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Huang, Tao <huangtao@rock-chips.com>
(cherry picked from commit 950334bcf17a6ab55ce13d3bdf050f7b429320d5)
drivers/pci/bus.c
include/linux/pci.h