On Tue, Dec 2, 2014 at 5:32 AM, Yunlei He <heyunlei@xxxxxxxxxx> wrote: > Gpio-ranges property is useful to represent which GPIOs correspond > to which pins on which pin controllers. But there may be some gpios > without pinctrl operation. So check whether gpio-ranges property > exists in device node first. > > Signed-off-by: Yunlei He <heyunlei@xxxxxxxxxx> > Signed-off-by: Xinwei Kong <kong.kongxinwei@xxxxxxxxxxxxx> > Signed-off-by: Haojian Zhuang <haojian.zhuang@xxxxxxxxxx> Yep simple and elegant. Patch applied. However I wonder if it would be possible to move this to the gpiolib.c or gpiolib-of.c core so not all drivers with this problem has to implement it. Yours, Linus Walleij -- To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html