Commit 56082156 authored by Qinglang Miao's avatar Qinglang Miao Committed by Linus Walleij

pinctrl: spear: simplify the return expression of tvc_connect()

Simplify the return expression.
Signed-off-by: default avatarQinglang Miao <miaoqinglang@huawei.com>
Acked-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
Link: https://lore.kernel.org/r/20200921131058.92941-1-miaoqinglang@huawei.comSigned-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 43b7229e
...@@ -3418,8 +3418,6 @@ static const struct of_device_id spear320_pinctrl_of_match[] = { ...@@ -3418,8 +3418,6 @@ static const struct of_device_id spear320_pinctrl_of_match[] = {
static int spear320_pinctrl_probe(struct platform_device *pdev) static int spear320_pinctrl_probe(struct platform_device *pdev)
{ {
int ret;
spear3xx_machdata.groups = spear320_pingroups; spear3xx_machdata.groups = spear320_pingroups;
spear3xx_machdata.ngroups = ARRAY_SIZE(spear320_pingroups); spear3xx_machdata.ngroups = ARRAY_SIZE(spear320_pingroups);
spear3xx_machdata.functions = spear320_functions; spear3xx_machdata.functions = spear320_functions;
...@@ -3433,11 +3431,7 @@ static int spear320_pinctrl_probe(struct platform_device *pdev) ...@@ -3433,11 +3431,7 @@ static int spear320_pinctrl_probe(struct platform_device *pdev)
pmx_init_gpio_pingroup_addr(spear3xx_machdata.gpio_pingroups, pmx_init_gpio_pingroup_addr(spear3xx_machdata.gpio_pingroups,
spear3xx_machdata.ngpio_pingroups, PMX_CONFIG_REG); spear3xx_machdata.ngpio_pingroups, PMX_CONFIG_REG);
ret = spear_pinctrl_probe(pdev, &spear3xx_machdata); return spear_pinctrl_probe(pdev, &spear3xx_machdata);
if (ret)
return ret;
return 0;
} }
static struct platform_driver spear320_pinctrl_driver = { static struct platform_driver spear320_pinctrl_driver = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment