]> git.sur5r.net Git - u-boot/commitdiff
s5pc1xx: gpio: bug fix at gpio_set_pull function
authorMinkyu Kang <mk7.kang@samsung.com>
Fri, 28 May 2010 03:34:29 +0000 (12:34 +0900)
committerTom <Tom@bumblecow.com>
Mon, 14 Jun 2010 23:15:20 +0000 (18:15 -0500)
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>
drivers/gpio/s5p_gpio.c

index 0439477e462175e3254b844e67d62bb116ae47b4..a1bcddcf45583b9d97ef10973783e3d498016f6b 100644 (file)
@@ -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);