pinctrl: skip deferral of hogs
commit89216494ae23dc0071a2b7f8d8264cee55cc211d
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 11 Dec 2012 13:14:32 +0000 (11 14:14 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 11 Jan 2013 20:48:05 +0000 (11 21:48 +0100)
tree74849c0f680c35876f82aa276bfa90b6c887a9f1
parent9931faca02c604c22335f5a935a501bb2ace6e20
pinctrl: skip deferral of hogs

Up until now, as hogs were always taken at the end of the
pin control device registration, it didn't cause any problem.
But when starting to hog pins from the device core it will
cause deferral of the pin controller device itself since the
default pin fetch is done *before* the device probes, so
let's fix this annoyance (which is also aesthetically ugly).

Also take some care to make sure that if any one map entry
results in a deferral rather than a failure, then that
deferral will take precedence.

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