Commit 43b7229e authored by Liu Shixin's avatar Liu Shixin Committed by Linus Walleij
Browse files

pinctrl: spear: simplify the return expression of spear310_pinctrl_probe

parent da2ab12f
Loading
Loading
Loading
Loading
+1 −7
Original line number Diff line number Diff line
@@ -379,8 +379,6 @@ static const struct of_device_id spear310_pinctrl_of_match[] = {

static int spear310_pinctrl_probe(struct platform_device *pdev)
{
	int ret;

	spear3xx_machdata.groups = spear310_pingroups;
	spear3xx_machdata.ngroups = ARRAY_SIZE(spear310_pingroups);
	spear3xx_machdata.functions = spear310_functions;
@@ -392,11 +390,7 @@ static int spear310_pinctrl_probe(struct platform_device *pdev)

	spear3xx_machdata.modes_supported = false;

	ret = spear_pinctrl_probe(pdev, &spear3xx_machdata);
	if (ret)
		return ret;

	return 0;
	return spear_pinctrl_probe(pdev, &spear3xx_machdata);
}

static struct platform_driver spear310_pinctrl_driver = {