aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh
diff options
context:
space:
mode:
authorMagnus Damm <damm@igel.co.jp>2008-10-21 08:31:07 -0400
committerPaul Mundt <lethal@linux-sh.org>2008-10-21 08:41:23 -0400
commited0b2ef55a393b96211e209f26544f2f180b0fe8 (patch)
tree4f3e0a3bda4172a65d0f833d3d365e39ff60bb27 /arch/sh
parent3b495513a2a033d401eba213327c1525d863eb9b (diff)
sh: Update gpio_set_value() pin value handling
This patch updates the pinmux code to use the boolean value for the function gpio_set_value(). Without this patch values other than 0 and 1 will result in incorrect GPIO settings. Signed-off-by: Magnus Damm <damm@igel.co.jp> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh')
-rw-r--r--arch/sh/kernel/gpio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sh/kernel/gpio.c b/arch/sh/kernel/gpio.c
index bb8b812c6895..9ac0b8e6c217 100644
--- a/arch/sh/kernel/gpio.c
+++ b/arch/sh/kernel/gpio.c
@@ -432,7 +432,7 @@ static int __gpio_get_set_value(struct pinmux_info *gpioc,
432 BUG(); 432 BUG();
433 else 433 else
434 value = read_write_reg(dr->reg, dr->reg_width, 434 value = read_write_reg(dr->reg, dr->reg_width,
435 1, bit, value, do_write); 435 1, bit, !!value, do_write);
436 436
437 return value; 437 return value;
438} 438}