PCI: mvebu: Replace pci_ioremap_io() usage by devm_pci_remap_iospace()
authorPali Rohár <pali@kernel.org>
Wed, 24 Nov 2021 15:41:13 +0000 (16:41 +0100)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Tue, 30 Nov 2021 11:10:11 +0000 (11:10 +0000)
commitc1aa4b55aae4c283e57c07e71968504bfa7d4a13
tree676cc87d59f2550da4440f804479d9b5e3083cf7
parentbc02973a06a6c74374edeb6d73ed4bde99b37456
PCI: mvebu: Replace pci_ioremap_io() usage by devm_pci_remap_iospace()

Now when ARM architecture code also provides standard PCI core function
pci_remap_iospace(), use its devm_pci_remap_iospace() variant in
pci-mvebu.c driver instead of old ARM-specific pci_ioremap_io() function.

Call devm_pci_remap_iospace() before adding IO resource to host bridge
structure, at the place where it should be.

Link: https://lore.kernel.org/r/20211124154116.916-3-pali@kernel.org
Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
drivers/pci/controller/pci-mvebu.c