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)
commit24344226f66beda742f233e08dfb3fb33932275b
treee21880797468f0619ff176206a6a284267f8bd16
parentb3a9e3b9622ae10064826dccb4f7a52bd88c7407
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