pinctrl: implement pinctrl deferred probing
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 10 Apr 2012 08:00:38 +0000 (10:00 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 18 Apr 2012 11:53:11 +0000 (13:53 +0200)
commitc05127c4e2c6e7d9949347a76fd05c337bcd5e84
tree5b23f8a116919028317f026e3f9998dce2ffb828
parentad8bb720c23a80233e45ed31d67458f5e5b7ab31
pinctrl: implement pinctrl deferred probing

If drivers try to obtain pinctrl handles for a pin controller that
has not yet registered to the subsystem, we need to be able to
back out and retry with deferred probing. So let's return
-EPROBE_DEFER whenever this location fails. Also downgrade the
errors to info, maybe we will even set them to debug once the
deferred probing is commonplace.

Cc: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Stephen Warren <swarren@wwwdotorg.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Documentation/pinctrl.txt
drivers/pinctrl/core.c
drivers/pinctrl/devicetree.c