Re: [PATCH] gpio: ftgpio010: Fix platform_get_irq's error checking

2017-12-02 Thread arvindY
Hi Linus, On Saturday 02 December 2017 09:00 PM, Linus Walleij wrote: Hi Arvind, thanks for the patch! On Thu, Nov 30, 2017 at 3:12 PM, Arvind Yadav wrote: The platform_get_irq() function returns negative if an error occurs. zero or positive number on success. platform_get_irq() error check

Re: [PATCH] gpio: ftgpio010: Fix platform_get_irq's error checking

2017-12-02 Thread Linus Walleij
Hi Arvind, thanks for the patch! On Thu, Nov 30, 2017 at 3:12 PM, Arvind Yadav wrote: > The platform_get_irq() function returns negative if an error occurs. > zero or positive number on success. platform_get_irq() error checking > for zero is not correct. > > Signed-off-by: Arvind Yadav (...)

[PATCH] gpio: ftgpio010: Fix platform_get_irq's error checking

2017-11-30 Thread Arvind Yadav
The platform_get_irq() function returns negative if an error occurs. zero or positive number on success. platform_get_irq() error checking for zero is not correct. Signed-off-by: Arvind Yadav --- drivers/gpio/gpio-ftgpio010.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git