]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
MIPS: RB532: Auto disable GPIO alternate function
authorPhil Sutter <n0-1@freewrt.org>
Fri, 28 Nov 2008 19:46:09 +0000 (20:46 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Fri, 30 Jan 2009 21:32:59 +0000 (21:32 +0000)
commit33763d571da995913299cd0509425decfa9e4be0
tree73b23605980e686256d7901f70c38368e7e11067
parent4aa0f4d7264bc4f54603de5db1ffcaf8912ddd23
MIPS: RB532: Auto disable GPIO alternate function

When a driver calls gpio_set_direction_{input,output}(), it obviously
doesn't want the alternate function for that pin to be active (as the
direction would not matter in that case). This patch ensures alternate
function is disabled when the direction is being changed.

Signed-off-by: Phil Sutter <n0-1@freewrt.org>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/rb532/gpio.c