commit | 33763d571da995913299cd0509425decfa9e4be0 | [log] [tgz] |
---|---|---|
author | Phil Sutter <n0-1@freewrt.org> | Fri Nov 28 20:46:09 2008 +0100 |
committer | Ralf Baechle <ralf@linux-mips.org> | Fri Jan 30 21:32:59 2009 +0000 |
tree | 73b23605980e686256d7901f70c38368e7e11067 | |
parent | 4aa0f4d7264bc4f54603de5db1ffcaf8912ddd23 [diff] |
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>