PCI: mvebu: Fix I/O space end address calculation
authorThomas Petazzoni <thomas.petazzoni@bootlin.com>
Fri, 3 Aug 2018 14:38:44 +0000 (16:38 +0200)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Wed, 8 Aug 2018 14:50:04 +0000 (15:50 +0100)
commitdfd0309fd7b30a5baffaf47b2fccb88b46d64d69
treef288ce404127906f082f3b7fba713085106aee19
parent6554f9501915101ba89aab6e40c83139d23f853a
PCI: mvebu: Fix I/O space end address calculation

pcie->realio.end should be the address of last byte of the area,
therefore using resource_size() of another resource is not correct, we
must substract 1 to get the address of the last byte.

Fixes: 11be65472a427 ("PCI: mvebu: Adapt to the new device tree layout")
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
drivers/pci/controller/pci-mvebu.c