Hi Sebastian, > diff --git a/drivers/of/gpio.c b/drivers/of/gpio.c > index 83b72c0..87b9c0c 100644 > --- a/drivers/of/gpio.c > +++ b/drivers/of/gpio.c > @@ -9,17 +9,16 @@ int of_get_named_gpio(struct device_node *np, > const char *propname, int index) > { > int ret; > - struct device_node *gpio_np; > - const void *gpio_spec; > + struct of_phandle_args out_args; > > - ret = of_parse_phandles_with_args(np, propname, "#gpio-cells", index, > - &gpio_np, &gpio_spec); > + ret = of_parse_phandle_with_args(np, propname, "#gpio-cells", > + index, &out_args); > if (ret) { > pr_debug("%s: can't parse gpios property: %d\n", __func__, ret); > return -EINVAL; > } > > - ret = gpio_get_num(gpio_np->device, be32_to_cpup(gpio_spec)); > + ret = gpio_get_num(out_args.np->device, outargs.args[0]); Typo: s/outargs/out_args/ (No need to resend atm) Sascha -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox