]> git.karo-electronics.de Git - mv-sheeva.git/commit
pl061: fix offset value range checking
authorAxel Lin <axel.lin@gmail.com>
Wed, 26 May 2010 21:42:19 +0000 (14:42 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 27 May 2010 16:12:41 +0000 (09:12 -0700)
commitc1cc9b9775c931a0015178daf92d41aec00580de
tree750cd8b9dc72d1e68597e8848cdffe8273ce1701
parent7839ec78214ecf477cc9e2862233b8d9fcf4ec58
pl061: fix offset value range checking

The valid offset value is 0..PL061_GPIO_NR-1, this patch corrects the
offset value range checking.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/gpio/pl061.c