From: Roland Stigge Date: Wed, 27 Jun 2012 22:32:14 +0000 (+0200) Subject: gpio: of_get_named_gpio_flags() return -EPROBE_DEFER if GPIO not yet available X-Git-Tag: v3.6-rc1~86^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4fbb0022cba37eef4a263183fdb7dbee89b299f2;p=pandora-kernel.git 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 Acked-by: Alexandre Pereira da Silva Signed-off-by: Linus Walleij --- Reading git-diff-tree failed