From: Anti Sullin Date: Wed, 26 Sep 2007 04:01:03 +0000 (-0400) Subject: Input: gpio_keys - verify that supplied GPIO numbers are valid X-Git-Tag: v2.6.24-rc1~1279^2~25 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=006df3024431a50262d4a2898d25924f84fb697a;p=pandora-kernel.git Input: gpio_keys - verify that supplied GPIO numbers are valid As David Brownell pointed out, gpio_keys driver does not check return code of gpio_to_irq(). This patch adds the gpio_to_irq return code check to gpio_keys and moves the IRQ edge type setting to request_irq flags to avoid changing the irq type before we have confirmed we can use it. Signed-off-by: Anti Sullin Signed-off-by: Dmitry Torokhov --- Reading git-diff-tree failed