Skip to content

Commit

Permalink
docs: pin-control: Fix error path for control state example
Browse files Browse the repository at this point in the history
The error is constructed using the wrong variable.

Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Link: https://lore.kernel.org/r/20210328164222.720525-1-niklas.soderlund+renesas@ragnatech.se
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
  • Loading branch information
Niklas Söderlund authored and linusw committed Apr 8, 2021
1 parent 8a83ecd commit 775c93a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Documentation/driver-api/pin-control.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1235,7 +1235,7 @@ default state like this::
foo->s = pinctrl_lookup_state(foo->p, PINCTRL_STATE_DEFAULT);
if (IS_ERR(foo->s)) {
/* FIXME: clean up "foo" here */
return PTR_ERR(s);
return PTR_ERR(foo->s);
}

ret = pinctrl_select_state(foo->s);
Expand Down

0 comments on commit 775c93a

Please sign in to comment.