diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2012-03-12 21:38:29 +0100 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2012-03-12 22:48:43 +0100 |
commit | 70b36378d44d7f5e62458a830b1a9bb1c570f28a (patch) | |
tree | 4956186b010d0b02245ade107645f5cb712d0ef3 /drivers/pinctrl/pinconf.h | |
parent | 652162d469a73450a66b6c8049b16c2b7828fa24 (diff) | |
download | blackbird-op-linux-70b36378d44d7f5e62458a830b1a9bb1c570f28a.tar.gz blackbird-op-linux-70b36378d44d7f5e62458a830b1a9bb1c570f28a.zip |
pinctrl: fix error path in pinconf_map_to_setting()
The code was using the union member
setting->data.configs.group_or_pin to store a potential
error code, but since that member is unsigned the
< 0 comparison was not true, letting errors pass through,
ending up as mapped to pin "-22". Fix this up and print
the error.
Acked-by: Stephen Warren <swarren@wwwdotorg.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/pinconf.h')
0 files changed, 0 insertions, 0 deletions