Re: [PATCH] gpiolib: always initialize *flags from of_get_named_gpio_flags

2016-01-03 Thread Linus Walleij
On Fri, Jan 1, 2016 at 11:40 PM, Arnd Bergmann wrote: > The of_get_named_gpio_flags() function does nothing other than returning > an error when CONFIG_OF_GPIO is disabled, but that causes spurious > warnings about possible use of uninitialized variables in any code that > does not check the of_g

[PATCH] gpiolib: always initialize *flags from of_get_named_gpio_flags

2016-01-01 Thread Arnd Bergmann
The of_get_named_gpio_flags() function does nothing other than returning an error when CONFIG_OF_GPIO is disabled, but that causes spurious warnings about possible use of uninitialized variables in any code that does not check the of_get_named_gpio_flags() return value before trying to use the flag