forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/pinctrl/spear/pinctrl-spear320.c
....@@ -3418,8 +3418,6 @@
34183418
34193419 static int spear320_pinctrl_probe(struct platform_device *pdev)
34203420 {
3421
- int ret;
3422
-
34233421 spear3xx_machdata.groups = spear320_pingroups;
34243422 spear3xx_machdata.ngroups = ARRAY_SIZE(spear320_pingroups);
34253423 spear3xx_machdata.functions = spear320_functions;
....@@ -3433,11 +3431,7 @@
34333431 pmx_init_gpio_pingroup_addr(spear3xx_machdata.gpio_pingroups,
34343432 spear3xx_machdata.ngpio_pingroups, PMX_CONFIG_REG);
34353433
3436
- ret = spear_pinctrl_probe(pdev, &spear3xx_machdata);
3437
- if (ret)
3438
- return ret;
3439
-
3440
- return 0;
3434
+ return spear_pinctrl_probe(pdev, &spear3xx_machdata);
34413435 }
34423436
34433437 static struct platform_driver spear320_pinctrl_driver = {