|
@@ -1240,8 +1240,7 @@ static int at91_pinctrl_probe(struct platform_device *pdev)
|
|
|
|
|
|
if (!info->pctl) {
|
|
|
dev_err(&pdev->dev, "could not register AT91 pinctrl driver\n");
|
|
|
- ret = -EINVAL;
|
|
|
- goto err;
|
|
|
+ return -EINVAL;
|
|
|
}
|
|
|
|
|
|
/* We will handle a range of GPIO pins */
|
|
@@ -1252,9 +1251,6 @@ static int at91_pinctrl_probe(struct platform_device *pdev)
|
|
|
dev_info(&pdev->dev, "initialized AT91 pinctrl driver\n");
|
|
|
|
|
|
return 0;
|
|
|
-
|
|
|
-err:
|
|
|
- return ret;
|
|
|
}
|
|
|
|
|
|
static int at91_pinctrl_remove(struct platform_device *pdev)
|