]> git.baikalelectronics.ru Git - kernel.git/commit
[ARM] 3480/1: ixp4xx: fix irq2gpio array type
authorLennert Buytenhek <buytenh@wantstofly.org>
Thu, 20 Apr 2006 20:24:38 +0000 (21:24 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 20 Apr 2006 20:24:38 +0000 (21:24 +0100)
commit8cf307226819161a4137b15ede2f732e1972649f
tree4926988a054fb1e00a2b98a63b8d8f4f5de7c04b
parentda2a1bb22c69ba29e68b391a777b5497bd38a78f
[ARM] 3480/1: ixp4xx: fix irq2gpio array type

Patch from Lennert Buytenhek

The irq2gpio array was recently converted from an array of ints to an
array of chars (by patch 3368/1.)  However, this array contains elements
that are -1, and on ARM, the char type is unsigned by default, so this
patch broke the GPIO check in ixp4xx_set_irq_type.

Change the 'char' to be a 'signed char' to fix this.

Signed-off-by: Lennert Buytenhek <buytenh@wantstofly.org>
Signed-off-by: Deepak Saxena <dsaxena@plexity.net>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mach-ixp4xx/common.c