提交 975acebb 编写于 作者: C Charles Keepax 提交者: Linus Walleij

gpio: arizona: Tidy up probe error path

There is some unnecessary complexity in the error path which now things
are converted to devm is actually very simple. This patch simplifies
things.
Signed-off-by: NCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
上级 a3ee78ec
...@@ -137,13 +137,10 @@ static int arizona_gpio_probe(struct platform_device *pdev) ...@@ -137,13 +137,10 @@ static int arizona_gpio_probe(struct platform_device *pdev)
if (ret < 0) { if (ret < 0) {
dev_err(&pdev->dev, "Could not register gpiochip, %d\n", dev_err(&pdev->dev, "Could not register gpiochip, %d\n",
ret); ret);
goto err; return ret;
} }
return ret; return 0;
err:
return ret;
} }
static struct platform_driver arizona_gpio_driver = { static struct platform_driver arizona_gpio_driver = {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册