summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMinkyu Kang <mk7.kang@samsung.com>2010-05-28 12:34:29 +0900
committerMinkyu Kang <mk7.kang@samsung.com>2010-05-31 09:19:39 +0900
commitdb3ff917e3a12dd4d46fd5a88ae9593f05182be4 (patch)
tree2d2244d2645022527873a9510aaa95986f020dfb
parent922d27b596c179c5a7d68abe45ede5adb1b6589c (diff)
downloadu-boot-imx-db3ff917e3a12dd4d46fd5a88ae9593f05182be4.zip
u-boot-imx-db3ff917e3a12dd4d46fd5a88ae9593f05182be4.tar.gz
u-boot-imx-db3ff917e3a12dd4d46fd5a88ae9593f05182be4.tar.bz2
s5pc1xx: gpio: bug fix at gpio_set_pull function
When set to PULL_NONE, gpio_set_pull function is returned without write the register. This patch fixed it. Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
-rw-r--r--drivers/gpio/s5p_gpio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/s5p_gpio.c b/drivers/gpio/s5p_gpio.c
index 0439477..a1bcddc 100644
--- a/drivers/gpio/s5p_gpio.c
+++ b/drivers/gpio/s5p_gpio.c
@@ -96,7 +96,7 @@ void gpio_set_pull(struct s5p_gpio_bank *bank, int gpio, int mode)
value |= PULL_MODE(gpio, mode);
break;
default:
- return;
+ break;
}
writel(value, &bank->pull);