mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 12:43:29 +02:00
pinctrl/spear: simplify the return expression of spear300_pinctrl_probe()
Simplify the return expression. Signed-off-by: Zheng Yongjun <zhengyongjun3@huawei.com> Acked-by: Viresh Kumar <viresh.kumar@linaro.org> Link: https://lore.kernel.org/r/20201210135746.1492-1-zhengyongjun3@huawei.com Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
committed by
Linus Walleij
parent
a15f859694
commit
3df09cb8c9
@@ -654,8 +654,6 @@ static const struct of_device_id spear300_pinctrl_of_match[] = {
|
|||||||
|
|
||||||
static int spear300_pinctrl_probe(struct platform_device *pdev)
|
static int spear300_pinctrl_probe(struct platform_device *pdev)
|
||||||
{
|
{
|
||||||
int ret;
|
|
||||||
|
|
||||||
spear3xx_machdata.groups = spear300_pingroups;
|
spear3xx_machdata.groups = spear300_pingroups;
|
||||||
spear3xx_machdata.ngroups = ARRAY_SIZE(spear300_pingroups);
|
spear3xx_machdata.ngroups = ARRAY_SIZE(spear300_pingroups);
|
||||||
spear3xx_machdata.functions = spear300_functions;
|
spear3xx_machdata.functions = spear300_functions;
|
||||||
@@ -669,11 +667,7 @@ static int spear300_pinctrl_probe(struct platform_device *pdev)
|
|||||||
|
|
||||||
pmx_init_addr(&spear3xx_machdata, PMX_CONFIG_REG);
|
pmx_init_addr(&spear3xx_machdata, 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 spear300_pinctrl_driver = {
|
static struct platform_driver spear300_pinctrl_driver = {
|
||||||
|
Reference in New Issue
Block a user