PCI: mvebu: Use struct pci_host_bridge.windows list directly
authorRob Herring <robh@kernel.org>
Fri, 22 May 2020 23:48:19 +0000 (17:48 -0600)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Mon, 6 Jul 2020 08:52:42 +0000 (09:52 +0100)
commitc322fa0b3fa948010a278794e60c45ec860e4a1e
tree1c3390a2a2f8f4dbedfca41d59ef2613391e8b4a
parent24344226f66beda742f233e08dfb3fb33932275b
PCI: mvebu: 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-3-robh@kernel.org
Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Cc: Jason Cooper <jason@lakedaemon.net>
drivers/pci/controller/pci-mvebu.c