summaryrefslogtreecommitdiffstats
path: root/drivers/pinctrl/spear/pinctrl-spear320.c
diff options
context:
space:
mode:
authorQinglang Miao <miaoqinglang@huawei.com>2020-09-21 15:10:58 +0200
committerLinus Walleij <linus.walleij@linaro.org>2020-09-29 15:26:25 +0200
commit5608215665b905632dc0dd43c075aeffc00b3818 (patch)
tree2ddb68e233b340b181e7974035e763fe94ade098 /drivers/pinctrl/spear/pinctrl-spear320.c
parentpinctrl: spear: simplify the return expression of spear310_pinctrl_probe (diff)
downloadlinux-5608215665b905632dc0dd43c075aeffc00b3818.tar.xz
linux-5608215665b905632dc0dd43c075aeffc00b3818.zip
pinctrl: spear: simplify the return expression of tvc_connect()
Simplify the return expression. Signed-off-by: Qinglang Miao <miaoqinglang@huawei.com> Acked-by: Viresh Kumar <viresh.kumar@linaro.org> Link: https://lore.kernel.org/r/20200921131058.92941-1-miaoqinglang@huawei.com Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/spear/pinctrl-spear320.c')
-rw-r--r--drivers/pinctrl/spear/pinctrl-spear320.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/pinctrl/spear/pinctrl-spear320.c b/drivers/pinctrl/spear/pinctrl-spear320.c
index 99c10fc3d9b5..e629e3035543 100644
--- a/drivers/pinctrl/spear/pinctrl-spear320.c
+++ b/drivers/pinctrl/spear/pinctrl-spear320.c
@@ -3418,8 +3418,6 @@ static const struct of_device_id spear320_pinctrl_of_match[] = {
static int spear320_pinctrl_probe(struct platform_device *pdev)
{
- int ret;
-
spear3xx_machdata.groups = spear320_pingroups;
spear3xx_machdata.ngroups = ARRAY_SIZE(spear320_pingroups);
spear3xx_machdata.functions = spear320_functions;
@@ -3433,11 +3431,7 @@ static int spear320_pinctrl_probe(struct platform_device *pdev)
pmx_init_gpio_pingroup_addr(spear3xx_machdata.gpio_pingroups,
spear3xx_machdata.ngpio_pingroups, PMX_CONFIG_REG);
- ret = spear_pinctrl_probe(pdev, &spear3xx_machdata);
- if (ret)
- return ret;
-
- return 0;
+ return spear_pinctrl_probe(pdev, &spear3xx_machdata);
}
static struct platform_driver spear320_pinctrl_driver = {