]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: of: Fix handling for deferred probe for -gpio suffix
authorTony Lindgren <tony@atomide.com>
Mon, 2 Jun 2014 23:13:46 +0000 (16:13 -0700)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 12 Jun 2014 07:57:00 +0000 (09:57 +0200)
commit5136251a45eade757b69eca4edbac8eae2bb3a20
tree6a9596e3859810e85b7690531fefd9234617e5f4
parent8839b40f27a93a3557e0f1ad9bae7e905b681711
gpio: of: Fix handling for deferred probe for -gpio suffix

Commit 85ea5ffd153 (gpio: of: Allow -gpio suffix for property names)
added parsing for both -gpio and -gpios suffix but also changed
the handling for deferred probe unintentionally. Because of the
looping the second name will now return -ENOENT instead of
-EPROBE_DEFER. Fix the issue by breaking out of the loop if
-EPROBE_DEFER is encountered.

Signed-off-by: Tony Lindgren <tony@atomide.com>
Reviewed-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpiolib.c