PCI: Add devm_pci_alloc_host_bridge() interface
authorLorenzo Pieralisi <[email protected]>
Wed, 28 Jun 2017 20:13:53 +0000 (15:13 -0500)
committerBjorn Helgaas <[email protected]>
Wed, 28 Jun 2017 20:13:53 +0000 (15:13 -0500)
commit5c3f18cce08364ef68163228c0b42725d64cd353
tree429a2f0838841c1bbaac4f7d028505d7a2428000
parentdff79b91b8f3279cbe60727368adff1f3a5ab16e
PCI: Add devm_pci_alloc_host_bridge() interface

Struct pci_host_bridge can be allocated by PCI host bridge drivers which
usually allocate and map memory through devm managed interfaces.

Add a devm version for the pci_alloc_host_bridge() interface to simplify
PCI host controller driver porting and simplify the driver failure paths.

Signed-off-by: Lorenzo Pieralisi <[email protected]>
Signed-off-by: Bjorn Helgaas <[email protected]>
Cc: Arnd Bergmann <[email protected]>
Documentation/driver-model/devres.txt
drivers/pci/probe.c
include/linux/pci.h