rockchip: rk3399: fix missing braces in full pinctrl
authorPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Fri, 4 Jan 2019 18:09:08 +0000 (19:09 +0100)
committerPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Sun, 6 Jan 2019 14:26:31 +0000 (15:26 +0100)
commit33502f371d49161a66f7c1f3752dbfc1358129c0
tree7c38fd876cc1415ad3b8fcc8ae77e067d5050384
parent53240275666acf32cb9811e44eaf2fd571a6cb75
rockchip: rk3399: fix missing braces in full pinctrl

Braces around the error-case for rk3399_pinctrl_set_pin_pupd lead to
an unconditional (and unintended) return from the function without it
ever setting pin-configurations.

Fix it.

Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/pinctrl/rockchip/pinctrl_rk3399.c