pinctrl: make "hog" mapping table entries work
authorStephen Warren <swarren@nvidia.com>
Tue, 14 Feb 2012 17:50:41 +0000 (10:50 -0700)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 22 Feb 2012 16:59:30 +0000 (17:59 +0100)
commit449d16b025ac38c7b62af5fb6ef4b833d78e690d
tree93afa4011913fc6817a662862cc51983c490d0ca
parent5c9bdc3f52d20c9bc6c2552c6d3ec5bfa4119f75
pinctrl: make "hog" mapping table entries work

Commit 77a5988 "pinctrl: changes hog mechanism to be self-referential"
modified the way "hog" entries were represented in the mapping table.
However, the new representation failed some error checks in
pinctrl_hog_map(). Remove the now-bogus error-check, and fix the code
to solve the issue the error-check used to avoid.

Acked-by: Dong Aisheng <dong.aisheng@linaro.org>
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/core.c