]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: SAMSUNG: Fix additional increment when running through gpios
authorBen Dooks <ben-linux@fluff.org>
Tue, 18 May 2010 10:07:05 +0000 (19:07 +0900)
committerBen Dooks <ben-linux@fluff.org>
Tue, 18 May 2010 10:07:05 +0000 (19:07 +0900)
commit2d5e059f194b2a653fca57f692b2e6ef21ffa153
tree1d22180eb5121546f716b8b70004905c8d2a3aa9
parent89a54ba11091758c2adaee92da7e4a628f33c0d2
ARM: SAMSUNG: Fix additional increment when running through gpios

The pm-gpio.c code was incrementing the gpio_nr from the nr_gpios
field and the bank-bank offset inside the loop, and also in the
for() loop with a ++.

Remove the ++, as the number is already at the next GPIO, thus
ensuring that we don't skip a gpio bank by accident.

Signed-off-by: Ben Dooks <ben-linux@fluff.org>
arch/arm/plat-samsung/pm-gpio.c