OSDN Git Service

PCI: host-common: Use struct pci_host_bridge.windows list directly
authorRob Herring <robh@kernel.org>
Fri, 22 May 2020 23:48:20 +0000 (17:48 -0600)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Fri, 10 Jul 2020 10:50:05 +0000 (11:50 +0100)
commite63434f4cc0da0f3ffe60d932997842f60552517
tree375dc4785fa14be86c32a7e0ce5832894f4ed4cd
parentc322fa0b3fa948010a278794e60c45ec860e4a1e
PCI: host-common: 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-4-robh@kernel.org
Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Cc: Will Deacon <will@kernel.org>
drivers/pci/controller/pci-host-common.c