]> 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)
commitedcc4d43fc9f029818b8a0ac0a7fb57626b83a4e
tree44a73c6b1bdf9240d5ca3f54089ae3e2b68f84c3
parente4974478f3c6e852394d631d3e37d2c1faec7bce
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