ARM: pxa: fix PGSR register address calculation
authorPaul Parsons <lost.distance@yahoo.com>
Sun, 8 May 2011 01:54:33 +0000 (01:54 +0000)
committerEric Miao <eric.y.miao@gmail.com>
Wed, 6 Jul 2011 15:47:40 +0000 (23:47 +0800)
commitbeb0c9b056b1c23d2029b46a425362e9ccbeba01
treea42fcfc2b61c3331659eaab94a26944eb8def380
parentfe0d42203cb5616eeff68b14576a0f7e2dd56625
ARM: pxa: fix PGSR register address calculation

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>
arch/arm/mach-pxa/mfp-pxa2xx.c