]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit26990664ac502f70ef26e50babf58b4a2231fbf7
tree1c3390a2a2f8f4dbedfca41d59ef2613391e8b4a
parenta48ad206940fbd479cebb495110667c47021dafe
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