powerpc/fsl_msi: fix support for multiple MSI ranges
authorTimur Tabi <timur@freescale.com>
Tue, 13 Sep 2011 21:17:00 +0000 (16:17 -0500)
committerKumar Gala <galak@kernel.crashing.org>
Tue, 11 Oct 2011 21:18:55 +0000 (16:18 -0500)
commit2228511833e267e833514cc85ba9626f9dacd661
tree0e23bd60170f0b9dd1167ae036382e6d551d5a87
parent2a05e333c2cee711c828d79300010b721c81574f
powerpc/fsl_msi: fix support for multiple MSI ranges

Commit 6820fead ("powerpc/fsl_msi: Handle msi-available-ranges better") added
support for multiple ranges in the msi-available-ranges property, but it
miscalculated the MSIR index when multiple ranges are used.

Signed-off-by: Timur Tabi <timur@freescale.com>
Acked-by: Scott Wood <scottwood@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
arch/powerpc/sysdev/fsl_msi.c