summaryrefslogtreecommitdiffstats
path: root/drivers/gpio
diff options
context:
space:
mode:
authorStephen Warren2013-08-14 23:27:12 +0200
committerGrant Likely2013-08-29 22:40:24 +0200
commitd9fe0039c4247383c2783923a3860227813b4d82 (patch)
tree5185258f4697e1acd4e180530eb8232ca8576bea /drivers/gpio
parentof: call __of_parse_phandle_with_args from of_parse_phandle (diff)
downloadkernel-qcow2-linux-d9fe0039c4247383c2783923a3860227813b4d82.tar.gz
kernel-qcow2-linux-d9fe0039c4247383c2783923a3860227813b4d82.tar.xz
kernel-qcow2-linux-d9fe0039c4247383c2783923a3860227813b4d82.zip
gpio: implement gpio-ranges binding document fix
Use the new of_parse_phandle_with_fixed_args() to implement the corrected gpio-ranges DT property definition. Signed-off-by: Stephen Warren <swarren@nvidia.com> Acked-by: Mark Rutland <mark.rutland@arm.com> Acked-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Grant Likely <grant.likely@linaro.org>
Diffstat (limited to 'drivers/gpio')
-rw-r--r--drivers/gpio/gpiolib-of.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpio/gpiolib-of.c b/drivers/gpio/gpiolib-of.c
index 665f9530c950..48cda3c9ee94 100644
--- a/drivers/gpio/gpiolib-of.c
+++ b/drivers/gpio/gpiolib-of.c
@@ -194,8 +194,8 @@ static void of_gpiochip_add_pin_range(struct gpio_chip *chip)
return;
for (;; index++) {
- ret = of_parse_phandle_with_args(np, "gpio-ranges",
- "#gpio-range-cells", index, &pinspec);
+ ret = of_parse_phandle_with_fixed_args(np, "gpio-ranges", 3,
+ index, &pinspec);
if (ret)
break;