diff options
author | Thomas Petazzoni <thomas.petazzoni@bootlin.com> | 2018-08-03 10:38:48 -0400 |
---|---|---|
committer | Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> | 2018-08-08 10:58:18 -0400 |
commit | f23d0d449c169d94cc958196a1d088705ef26ebc (patch) | |
tree | 60358f2e7bc5d2de5c3dc8e21a7f46fe34c0f07f | |
parent | 42342073e38b50113354944cd51dcfed28d857a1 (diff) |
PCI: mvebu: Drop bogus comment above mvebu_pcie_map_registers()
This comment has been there since the driver was introduced, but seems
to be a leftover from previous iterations of the driver. Indeed, we do
not lookup in a list to find the register ranges that matches the
given port/lane, as the "reg" property is in each sub-node
representing a PCI port. There is no lookup involved at all.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
-rw-r--r-- | drivers/pci/controller/pci-mvebu.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/pci/controller/pci-mvebu.c b/drivers/pci/controller/pci-mvebu.c index 9055f03596ef..50eb0729385b 100644 --- a/drivers/pci/controller/pci-mvebu.c +++ b/drivers/pci/controller/pci-mvebu.c | |||
@@ -888,11 +888,6 @@ static resource_size_t mvebu_pcie_align_resource(struct pci_dev *dev, | |||
888 | return start; | 888 | return start; |
889 | } | 889 | } |
890 | 890 | ||
891 | /* | ||
892 | * Looks up the list of register addresses encoded into the reg = | ||
893 | * <...> property for one that matches the given port/lane. Once | ||
894 | * found, maps it. | ||
895 | */ | ||
896 | static void __iomem *mvebu_pcie_map_registers(struct platform_device *pdev, | 891 | static void __iomem *mvebu_pcie_map_registers(struct platform_device *pdev, |
897 | struct device_node *np, | 892 | struct device_node *np, |
898 | struct mvebu_pcie_port *port) | 893 | struct mvebu_pcie_port *port) |