• Sean Wang's avatar
    pinctrl: mt7622: Fix probe fail by misuse the selector · 238262af
    Sean Wang authored
    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: default avatarSean Wang <sean.wang@mediatek.com>
    Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
    238262af
pinctrl-mt7622.c 53.4 KB