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

Commit fafa35cc authored by Sean Wang's avatar Sean Wang Committed by Linus Walleij
Browse files

pinctrl: mt7622: fix error path on failing at groups building



It should be to return an error code when failing at groups building.

Cc: stable@vger.kernel.org
Fixes: d6ed9355 ("pinctrl: mediatek: add pinctrl driver for MT7622 SoC")
Signed-off-by: default avatarSean Wang <sean.wang@mediatek.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 1e4b044d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1703,7 +1703,7 @@ static int mtk_pinctrl_probe(struct platform_device *pdev)
	err = mtk_build_groups(hw);
	if (err) {
		dev_err(&pdev->dev, "Failed to build groups\n");
		return 0;
		return err;
	}

	/* Setup functions descriptions per SoC types */