]> www.infradead.org Git - users/dwmw2/linux.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>
Thu, 3 Jan 2013 14:49:02 +0000 (15:49 +0100)
commitaf1024e0f7cde9023ddd0f3116db03911d5914c0
tree4ac93fb0e8ec79dfba80e2cc145b520e260b5bc8
parent9fcb4cc2d7dd192ae718f0e7484c6f5c08b8af23
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