Files
Linux/drivers
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 <[email protected]>
Acked-by: Alexandre Pereira da Silva <[email protected]>
Signed-off-by: Linus Walleij <[email protected]>
2012-07-17 21:00:21 +02:00
..
…
2012-06-20 14:39:36 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
2012-06-20 14:39:36 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2012-06-26 16:14:34 -07:00
…
…
…
…
…
…