]> git.baikalelectronics.ru Git - kernel.git/commit
pinctrl: mt7622: Fix probe fail by misuse the selector
authorSean Wang <sean.wang@mediatek.com>
Thu, 12 Jul 2018 05:50:00 +0000 (13:50 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 17 Jul 2018 08:50:14 +0000 (10:50 +0200)
commit9196154cbc672ccd4cc5293f4e9d84a064cca442
tree3805bf88cb11242ca4c47dcaba6b264a56bd34d5
parentcac97606765f56b713f5e455e52a2e67e9c22fd4
pinctrl: mt7622: Fix probe fail by misuse the selector

After the commit acf137951367 ("pinctrl: core: Return selector to the
pinctrl driver") and the commit 47f1242d19c3 ("pinctrl: pinmux: Return
selector to the pinctrl driver"), it's necessary to add the fixes
needed for the pin controller drivers to use the appropriate returned
selector for a negative error number returned in case of the fail at
these functions. Otherwise, the driver would have a failed probe and
that causes boot message cannot correctly output and devices fail
to acquire their own pins.

Cc: Kevin Hilman <khilman@baylibre.com>
Fixes: acf137951367 ("pinctrl: core: Return selector to the pinctrl driver")
Fixes: 47f1242d19c3 ("pinctrl: pinmux: Return selector to the pinctrl driver")
Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/mediatek/pinctrl-mt7622.c