From: Florian Fainelli Date: Sat, 1 Aug 2009 21:51:20 +0000 (+0200) Subject: MIPS: MTX-1: Request button GPIO before setting its direction X-Git-Tag: v2.6.31-rc6~64^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a1b021d3992d9be03b0abec1a7ed78e713b94206;p=pandora-kernel.git MIPS: MTX-1: Request button GPIO before setting its direction This patch fixes the following warning at boot time: WARNING: at drivers/gpio/gpiolib.c:83 0x8021d5e0() autorequest GPIO-207 Modules linked in: Call Trace:[<8011e0ec>] 0x8011e0ec [<80110a28>] 0x80110a28 [<80110a28>] 0x80110a28 [..snip..] The current code does not request the GPIO and attempts to set its direction, which is a violation of the GPIO API. This patch also unhardcode the GPIO we request and use the one we defined in the button driver. Signed-off-by: Florian Fainelli Signed-off-by: Ralf Baechle --- Reading git-diff-tree failed