summaryrefslogtreecommitdiffstats
path: root/arch/sh
diff options
context:
space:
mode:
authorMagnus Damm <damm@igel.co.jp>2008-10-21 21:31:07 +0900
committerPaul Mundt <lethal@linux-sh.org>2008-10-21 21:41:23 +0900
commited0b2ef55a393b96211e209f26544f2f180b0fe8 (patch)
tree4f3e0a3bda4172a65d0f833d3d365e39ff60bb27 /arch/sh
parent3b495513a2a033d401eba213327c1525d863eb9b (diff)
downloadlinux-ed0b2ef55a393b96211e209f26544f2f180b0fe8.tar.gz
linux-ed0b2ef55a393b96211e209f26544f2f180b0fe8.tar.bz2
linux-ed0b2ef55a393b96211e209f26544f2f180b0fe8.zip
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,
BUG();
else
value = read_write_reg(dr->reg, dr->reg_width,
- 1, bit, value, do_write);
+ 1, bit, !!value, do_write);
return value;
}