Roland Stigge 4fbb0022cb gpio: of_get_named_gpio_flags() return -EPROBE_DEFER if GPIO not yet available
of_get_named_gpio_flags() and of_get_named_gpio() return -EPROBE_DEFER if the
respective GPIO is not (yet) available. This is useful if driver's probe()
functions try to get a GPIO whose controller isn't probed yet. Thus, the driver
can be probed again later on.

The function still returns -EINVAL on other errors (parse error or node doesn't
exist). This way, the case of an optional/intentionally missing GPIO is handled
appropriately.

Signed-off-by: Roland Stigge <stigge@antcom.de>
Acked-by: Alexandre Pereira da Silva <aletes.xgr@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2012-07-17 21:00:21 +02:00
..
2012-05-18 00:00:45 +02:00
2011-06-06 10:10:11 -06:00
2011-06-06 10:10:11 -06:00
2011-06-06 10:10:11 -06:00
2011-06-06 10:10:11 -06:00
2011-06-06 10:10:11 -06:00
2012-05-11 13:14:54 -06:00
2012-05-05 16:36:47 +08:00
2012-05-09 15:38:39 +02:00
2012-03-28 14:08:46 -07:00
2011-06-06 10:10:11 -06:00
2011-06-06 10:10:11 -06:00
2011-06-06 10:10:11 -06:00