ARM: pxa: fix PGSR register address calculation
commit560a0d439f706e1239eeda9b6596d3646d87ae07
authorPaul Parsons <lost.distance@yahoo.com>
Sun, 8 May 2011 01:54:33 +0000 (8 01:54 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 3 Aug 2011 19:42:28 +0000 (3 12:42 -0700)
treea4931171cda76867c5c3ca11964d46d2bee96082
parent8a13118043cc06528450ea7cc4876c58d8710373
ARM: pxa: fix PGSR register address calculation

commit beb0c9b056b1c23d2029b46a425362e9ccbeba01 upstream.

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>
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/arm/mach-pxa/mfp-pxa2xx.c