From: Minkyu Kang Date: Fri, 28 May 2010 03:34:29 +0000 (+0900) Subject: s5pc1xx: gpio: bug fix at gpio_set_pull function X-Git-Tag: v2010.09-rc1~28^2~7^2~7 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=db3ff917e3a12dd4d46fd5a88ae9593f05182be4;p=u-boot 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 --- diff --git a/drivers/gpio/s5p_gpio.c b/drivers/gpio/s5p_gpio.c index 0439477e46..a1bcddcf45 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);