]> git.baikalelectronics.ru Git - kernel.git/commit
pinctrl: skip deferral of hogs
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 11 Dec 2012 13:14:32 +0000 (14:14 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 11 Jan 2013 20:48:05 +0000 (21:48 +0100)
commitc4b6e81e40851106333f083f0fccece1fff6165b
tree74849c0f680c35876f82aa276bfa90b6c887a9f1
parent8a951b0447260880e42a062699d73808167b7fdf
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