Skip to content

Commit d361208

Browse files
Zhen Leigregkh
authored andcommitted
pinctrl: single: Fix error return code in pcs_parse_bits_in_pinctrl_entry()
[ Upstream commit d789a49 ] Fix to return -ENOTSUPP instead of 0 when PCS_HAS_PINCONF is true, which is the same as that returned in pcs_parse_pinconf(). Fixes: 4e7e801 ("pinctrl: pinctrl-single: enhance to configure multiple pins of different modules") Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com> Link: https://lore.kernel.org/r/20210722033930.4034-2-thunder.leizhen@huawei.com Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 6291fd0 commit d361208

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎drivers/pinctrl/pinctrl-single.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1222,6 +1222,7 @@ static int pcs_parse_bits_in_pinctrl_entry(struct pcs_device *pcs,
12221222

12231223
if (PCS_HAS_PINCONF) {
12241224
dev_err(pcs->dev, "pinconf not supported\n");
1225+
res = -ENOTSUPP;
12251226
goto free_pingroups;
12261227
}
12271228

0 commit comments

Comments
 (0)