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

Commit 6415093f authored by Boris Brezillon's avatar Boris Brezillon Committed by Linus Walleij
Browse files

pinctrl: sunxi: check clk_prepare_enable return value



Check the clk_prepare_enable return value to avoid false positive probe.

Signed-off-by: default avatarBoris BREZILLON <boris.brezillon@free-electrons.com>
Acked-by: default avatarMaxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 3b02dad2
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -884,7 +884,9 @@ static int sunxi_pinctrl_probe(struct platform_device *pdev)
		goto gpiochip_error;
	}

	clk_prepare_enable(clk);
	ret = clk_prepare_enable(clk);
	if (ret)
		goto gpiochip_error;

	pctl->irq = irq_of_parse_and_map(node, 0);
	if (!pctl->irq) {