From: Janusz Krzysztofik Date: Mon, 5 Apr 2010 11:38:06 +0000 (+0000) Subject: omap: gpio: fix incorrect matching of IRQ_TYPE_EDGE_BOTH X-Git-Tag: v2.6.34-rc6~26^2~25 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=29501577a7f3c925d5273064752ce3dc356ccfad;p=pandora-kernel.git omap: gpio: fix incorrect matching of IRQ_TYPE_EDGE_BOTH Since IRQ_TYPE_EDGE_BOTH is defined as (IRQ_TYPE_EDGE_FALLING | IRQ_TYPE_EDGE_RISING), testing against it with a bitwise AND also matches both single-edge cases in addition to the intended both edges case. Fix it, replacing with a more accurate expression. Created and tested againts linux-2.6.34-rc3. Applicable to 2.6.33-stable as well. Signed-off-by: Janusz Krzysztofik Signed-off-by: Tony Lindgren --- Reading git-diff-tree failed