diff options
author | Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se> | 2021-03-28 18:42:22 +0200 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2021-04-08 16:02:43 +0200 |
commit | 775c93a7c5b4d31f716db21fd097a64e9b5bf3b7 (patch) | |
tree | c8339aa9b09e71e07582dd6afe9b4315eb2a5e19 /Documentation/driver-api | |
parent | 8a83ecd8ec6ce8c1c15e00a8ae3ebc71107ef044 (diff) |
docs: pin-control: Fix error path for control state example
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>
Diffstat (limited to 'Documentation/driver-api')
-rw-r--r-- | Documentation/driver-api/pin-control.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/driver-api/pin-control.rst b/Documentation/driver-api/pin-control.rst index c905b273e833..e2474425fb0c 100644 --- a/Documentation/driver-api/pin-control.rst +++ b/Documentation/driver-api/pin-control.rst @@ -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); |