Commit 3df09cb8 authored by Zheng Yongjun's avatar Zheng Yongjun Committed by Linus Walleij
Browse files

pinctrl/spear: simplify the return expression of spear300_pinctrl_probe()

parent a15f8596
Loading
Loading
Loading
Loading
+1 −7
Original line number Diff line number Diff line
@@ -654,8 +654,6 @@ static const struct of_device_id spear300_pinctrl_of_match[] = {

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

	spear3xx_machdata.groups = spear300_pingroups;
	spear3xx_machdata.ngroups = ARRAY_SIZE(spear300_pingroups);
	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);

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

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

static struct platform_driver spear300_pinctrl_driver = {