diff options
author | Jisheng Zhang <Jisheng.Zhang@synaptics.com> | 2019-03-29 11:58:53 +0000 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2019-05-07 08:54:14 -0500 |
commit | e6fdd3bf5aecd8615f31a5128775b9abcf3e0d86 (patch) | |
tree | d3a3ec744ebac2911c6b3bc5ca6ef994f2c2d7d7 /drivers/pci/controller/dwc/pcie-uniphier.c | |
parent | 9e2b5de5604a6ff2626c51e77014d92c9299722c (diff) |
PCI: dwc: Use devm_pci_alloc_host_bridge() to simplify code
Use devm_pci_alloc_host_bridge() to simplify the error code path. This
also fixes a leak in the dw_pcie_host_init() error path.
Signed-off-by: Jisheng Zhang <Jisheng.Zhang@synaptics.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Gustavo Pimentel <gustavo.pimentel@synopsys.com>
CC: stable@vger.kernel.org # v4.13+
Diffstat (limited to 'drivers/pci/controller/dwc/pcie-uniphier.c')
0 files changed, 0 insertions, 0 deletions