summaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpiolib-of.c
diff options
context:
space:
mode:
authorLaxman Dewangan <ldewangan@nvidia.com>2016-03-11 14:43:20 +0100
committerLinus Walleij <linus.walleij@linaro.org>2016-04-14 14:49:36 +0200
commitd1279d94b4e47c3684f936ed6b6c89d3dd2cd5b9 (patch)
treef43b35658bfc963ba158f9730ebc417bd84c562c /drivers/gpio/gpiolib-of.c
parentgpio: tegra: Allow compile test (diff)
downloadlinux-d1279d94b4e47c3684f936ed6b6c89d3dd2cd5b9.tar.xz
linux-d1279d94b4e47c3684f936ed6b6c89d3dd2cd5b9.zip
gpio: of: Scan available child node for gpio-hog
Look for child node which are available when iterating for gpio hog node for request/set GPIO initial configuration during OF gpio chip registration. All it really does is make it possible to set status = "disabled"; in the hog nodes, and then they will not be applied. Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-by: Thierry Reding <treding@nvidia.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio/gpiolib-of.c')
-rw-r--r--drivers/gpio/gpiolib-of.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpiolib-of.c b/drivers/gpio/gpiolib-of.c
index a2485093d10d..d81dbd8e90d9 100644
--- a/drivers/gpio/gpiolib-of.c
+++ b/drivers/gpio/gpiolib-of.c
@@ -212,7 +212,7 @@ static int of_gpiochip_scan_gpios(struct gpio_chip *chip)
enum gpiod_flags dflags;
int ret;
- for_each_child_of_node(chip->of_node, np) {
+ for_each_available_child_of_node(chip->of_node, np) {
if (!of_property_read_bool(np, "gpio-hog"))
continue;