ARM: pxa: fix PGSR register address calculation
commitdd4e598f13dd3e9c871034dd22ace5977fa4c37a
authorPaul Parsons <lost.distance@yahoo.com>
Sun, 8 May 2011 01:54:33 +0000 (8 01:54 +0000)
committerAndi Kleen <ak@linux.intel.com>
Mon, 1 Aug 2011 20:55:03 +0000 (1 13:55 -0700)
treef0e9bbb5765d9cdc27bc4047eea0886df966ce2a
parent788ae7963e9b103697d23a773dc1449533bf2e79
ARM: pxa: fix PGSR register address calculation

[ upstream commit beb0c9b056b1c23d2029b46a425362e9ccbeba01 ]

The file mfp-pxa2xx.c defines a macro, PGSR(), which translates a gpio
bank number to a PGSR register address. The function pxa2xx_mfp_suspend()
erroneously passed in a gpio number instead of a gpio bank number.

Signed-off-by: Paul Parsons <lost.distance@yahoo.com>
Cc: stable@kernel.org
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
arch/arm/mach-pxa/mfp-pxa2xx.c