From: Linus Walleij Date: Mon, 12 Mar 2012 20:38:29 +0000 (+0100) Subject: pinctrl: fix error path in pinconf_map_to_setting() X-Git-Tag: v3.4-rc1~128^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=70b36378d44d7f5e62458a830b1a9bb1c570f28a;p=pandora-kernel.git 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 Signed-off-by: Linus Walleij --- Reading git-diff-tree failed