Skip to content

Commit d789a49

Browse files
Zhen LeiLinus Walleij
authored andcommitted
pinctrl: single: Fix error return code in pcs_parse_bits_in_pinctrl_entry()
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>
1 parent 182700f commit d789a49

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
@@ -1224,6 +1224,7 @@ static int pcs_parse_bits_in_pinctrl_entry(struct pcs_device *pcs,
12241224

12251225
if (PCS_HAS_PINCONF) {
12261226
dev_err(pcs->dev, "pinconf not supported\n");
1227+
res = -ENOTSUPP;
12271228
goto free_pingroups;
12281229
}
12291230

0 commit comments

Comments
 (0)