aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pinctrl/pinctrl-rockchip.c
diff options
context:
space:
mode:
authorHeiko Stübner <heiko@sntech.de>2013-10-15 19:08:11 -0400
committerLinus Walleij <linus.walleij@linaro.org>2013-10-16 09:33:53 -0400
commitd1358f90e3b63530a5e0cf4ffa7560b359e9d638 (patch)
tree92adb275502bfb8d1d52d9e61aff6742ba69748a /drivers/pinctrl/pinctrl-rockchip.c
parent65fca613b00aa2aaa008d40304e00b76f4693f60 (diff)
pinctrl: rockchip: remove redundant check
The check limiting bias options to supported ones is already done thru rockchip_pinconf_pull_valid. Therefore this check is redundant and can be removed. Signed-off-by: Heiko Stuebner <heiko@sntech.de> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/pinctrl-rockchip.c')
-rw-r--r--drivers/pinctrl/pinctrl-rockchip.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/pinctrl/pinctrl-rockchip.c b/drivers/pinctrl/pinctrl-rockchip.c
index efca1165e955..91027dd19f89 100644
--- a/drivers/pinctrl/pinctrl-rockchip.c
+++ b/drivers/pinctrl/pinctrl-rockchip.c
@@ -424,12 +424,6 @@ static int rockchip_set_pull(struct rockchip_pin_bank *bank,
424 424
425 switch (ctrl->type) { 425 switch (ctrl->type) {
426 case RK2928: 426 case RK2928:
427 if (pull != PIN_CONFIG_BIAS_PULL_PIN_DEFAULT &&
428 pull != PIN_CONFIG_BIAS_DISABLE) {
429 dev_err(info->dev, "only PIN_DEFAULT and DISABLE allowed\n");
430 return -EINVAL;
431 }
432
433 ctrl->pull_calc_reg(bank, pin_num, &reg, &bit); 427 ctrl->pull_calc_reg(bank, pin_num, &reg, &bit);
434 428
435 spin_lock_irqsave(&bank->slock, flags); 429 spin_lock_irqsave(&bank->slock, flags);