]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: Add devm_request_pci_bus_resources()
authorBjorn Helgaas <bhelgaas@google.com>
Sat, 28 May 2016 23:09:16 +0000 (18:09 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 6 Jun 2016 20:25:51 +0000 (15:25 -0500)
commit8e63b30fd7c1e150448587777fcb3c2dcbffc00b
tree2c218cbf95f3ef9c6b4015cd8bea17fb02491b15
parent50071cc55229e13f7b459c28388ff0f4e1bac824
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>).

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/bus.c
include/linux/pci.h