]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: cadence: Use struct pci_host_bridge.windows list directly
authorRob Herring <robh@kernel.org>
Fri, 22 May 2020 23:48:18 +0000 (17:48 -0600)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Mon, 6 Jul 2020 08:52:42 +0000 (09:52 +0100)
commita48ad206940fbd479cebb495110667c47021dafe
treee21880797468f0619ff176206a6a284267f8bd16
parent74a27a5f5a99e6b5adfd790053b6cccac3270c76
PCI: cadence: Use struct pci_host_bridge.windows list directly

There's no need to create a temporary resource list and then splice it to
struct pci_host_bridge.windows list. Just use pci_host_bridge.windows
directly. The necessary clean-up is already handled by the PCI core.

Link: https://lore.kernel.org/r/20200522234832.954484-2-robh@kernel.org
Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Cc: Tom Joseph <tjoseph@cadence.com>
drivers/pci/controller/cadence/pcie-cadence-host.c