pinctrl: fix error path in pinconf_map_to_setting()
authorLinus Walleij <linus.walleij@linaro.org>
Mon, 12 Mar 2012 20:38:29 +0000 (21:38 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 12 Mar 2012 21:48:43 +0000 (22:48 +0100)
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>
drivers/pinctrl/pinconf.c

Simple merge