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: d6ed935513 ("pinctrl: mediatek: add pinctrl driver for MT7622 SoC")
Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
Sean Wang 2018-06-22 11:49:04 +08:00 committed by Linus Walleij
parent 1e4b044d22
commit fafa35cce3

View File

@ -1703,7 +1703,7 @@ static int mtk_pinctrl_probe(struct platform_device *pdev)
err = mtk_build_groups(hw); err = mtk_build_groups(hw);
if (err) { if (err) {
dev_err(&pdev->dev, "Failed to build groups\n"); dev_err(&pdev->dev, "Failed to build groups\n");
return 0; return err;
} }
/* Setup functions descriptions per SoC types */ /* Setup functions descriptions per SoC types */