]> git.baikalelectronics.ru Git - kernel.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)
commit73a24875dbd583f49b452bf30750bd65026eb9ce
tree73b23605980e686256d7901f70c38368e7e11067
parent1ffa409af5641c1d42d420832854445a79a6403d
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