pinctrl: qcom: spmi-mpp: Fix err handling of pmic_mpp_set_mux
commit1a744358fd4b0f32d3a5d1f0148b128221823b6e
authorYueHaibing <yuehaibing@huawei.com>
Thu, 20 Sep 2018 01:58:18 +0000 (20 01:58 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Nov 2018 19:08:27 +0000 (13 11:08 -0800)
tree3bba556002892aca1881e704fbd8235e884aa81a
parentd2a76333ce319d79fa3128f9e16c8f4602653273
pinctrl: qcom: spmi-mpp: Fix err handling of pmic_mpp_set_mux

[ Upstream commit 69f8455f6cc78fa6cdf80d0105d7a748106271dc ]

'ret' should be returned while pmic_mpp_write_mode_ctl fails.

Fixes: 0e948042c420 ("pinctrl: qcom: spmi-mpp: Implement support for sink mode")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/pinctrl/qcom/pinctrl-spmi-mpp.c