linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/7] pinctrl: mt7622: fix error path on failing at groups building
@ 2018-06-22  3:49 sean.wang
  2018-06-22  3:49 ` [PATCH 2/7] pinctrl: mt7622: fix initialization sequence between eint and gpiochip sean.wang
                   ` (6 more replies)
  0 siblings, 7 replies; 15+ messages in thread
From: sean.wang @ 2018-06-22  3:49 UTC (permalink / raw)
  To: linus.walleij, linux-mediatek
  Cc: linux-arm-kernel, linux-gpio, linux-kernel, Sean Wang, stable

From: Sean Wang <sean.wang@mediatek.com>

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

Cc: stable@vger.kernel.org
Fixes: d6ed93551320 ("pinctrl: mediatek: add pinctrl driver for MT7622 SoC")
Signed-off-by: Sean Wang <sean.wang@mediatek.com>
---
 drivers/pinctrl/mediatek/pinctrl-mt7622.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/pinctrl/mediatek/pinctrl-mt7622.c b/drivers/pinctrl/mediatek/pinctrl-mt7622.c
index e3f1ab2..9ad8cb77 100644
--- a/drivers/pinctrl/mediatek/pinctrl-mt7622.c
+++ b/drivers/pinctrl/mediatek/pinctrl-mt7622.c
@@ -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 */
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2018-07-16 13:37 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-06-22  3:49 [PATCH 1/7] pinctrl: mt7622: fix error path on failing at groups building sean.wang
2018-06-22  3:49 ` [PATCH 2/7] pinctrl: mt7622: fix initialization sequence between eint and gpiochip sean.wang
2018-06-29 12:18   ` Linus Walleij
2018-06-22  3:49 ` [PATCH 3/7] pinctrl: mt7622: fix that pinctrl_claim_hogs cannot work sean.wang
2018-06-29 12:19   ` Linus Walleij
2018-06-22  3:49 ` [PATCH 4/7] pinctrl: mt7622: stop using the deprecated pinctrl_add_gpio_range sean.wang
2018-06-29 12:21   ` Linus Walleij
2018-06-22  3:49 ` [PATCH 5/7] pinctrl: mt7622: fix a kernel panic when gpio-hog is being applied sean.wang
2018-06-29 12:22   ` Linus Walleij
2018-06-22  3:49 ` [PATCH 6/7] arm64: dts: mt7622: use gpio-ranges to pinctrl device sean.wang
2018-06-29 12:22   ` Linus Walleij
2018-07-16 13:36   ` Matthias Brugger
     [not found] ` <f222c9f488490bd86d35346e725491e1de306ace.1529639050.git.sean.wang-NuS5LvNUpcJWk0Htik3J/w@public.gmane.org>
2018-06-22  3:49   ` [PATCH 7/7] arm64: dts: mt7622: add earlycon to mt7622-rfb1 board sean.wang-NuS5LvNUpcJWk0Htik3J/w
2018-07-16 13:37     ` Matthias Brugger
2018-06-29 12:17 ` [PATCH 1/7] pinctrl: mt7622: fix error path on failing at groups building Linus Walleij

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).