]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: mvebu: Only remap I/O space if configured
authorThomas Petazzoni <thomas.petazzoni@bootlin.com>
Fri, 3 Aug 2018 14:38:45 +0000 (16:38 +0200)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Wed, 8 Aug 2018 14:50:30 +0000 (15:50 +0100)
commitbfb2df96a86fe160b6a20d89a2424f5905bf47c3
tree44a73c6b1bdf9240d5ca3f54089ae3e2b68f84c3
parenteb0d8e669f1a12d7b3d4dfdbd72a0bbcfee49e26
PCI: mvebu: Only remap I/O space if configured

If there is no PCI I/O aperture configured in the Device Tree, it does
not make sense to create the virtual mapping for the PCI I/O space,
since we will anyway not create the MBus window that will allow to
access it. Therefore, do the pci_ioremap_io() only if necessary.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
drivers/pci/controller/pci-mvebu.c