]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit868ceeafc3ec483d2612884dab26727df9e841b9
tree375dc4785fa14be86c32a7e0ce5832894f4ed4cd
parent26990664ac502f70ef26e50babf58b4a2231fbf7
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