Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 975acebb authored by Charles Keepax's avatar Charles Keepax Committed by Linus Walleij
Browse files

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: default avatarCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent a3ee78ec
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -137,13 +137,10 @@ static int arizona_gpio_probe(struct platform_device *pdev)
	if (ret < 0) {
		dev_err(&pdev->dev, "Could not register gpiochip, %d\n",
			ret);
		goto err;
	}

		return ret;
	}

err:
	return ret;
	return 0;
}

static struct platform_driver arizona_gpio_driver = {