Re: [PATCH] driver-core: platform: Avoid to return IRQ 0 in platform_get_irq()

2017-12-05 Thread Arvind Yadav
Hi Dmitry, On Tuesday 05 December 2017 11:50 PM, Dmitry Torokhov wrote: On Tue, Dec 05, 2017 at 11:41:52PM +0530, Arvind Yadav wrote: Function platform_get_irq() can return 0. Which means NO_IRQ. So this change will not allow to return 0. This change is help to use platform_get_irq() without

Re: [PATCH] driver-core: platform: Avoid to return IRQ 0 in platform_get_irq()

2017-12-05 Thread Arvind Yadav
Hi Dmitry, On Tuesday 05 December 2017 11:50 PM, Dmitry Torokhov wrote: On Tue, Dec 05, 2017 at 11:41:52PM +0530, Arvind Yadav wrote: Function platform_get_irq() can return 0. Which means NO_IRQ. So this change will not allow to return 0. This change is help to use platform_get_irq() without

Re: [PATCH] driver-core: platform: Avoid to return IRQ 0 in platform_get_irq()

2017-12-05 Thread Dmitry Torokhov
On Tue, Dec 05, 2017 at 11:41:52PM +0530, Arvind Yadav wrote: > Function platform_get_irq() can return 0. Which means NO_IRQ. > So this change will not allow to return 0. > > This change is help to use platform_get_irq() without this, > > val = platform_get_irq(); > if (val <= 0) >

Re: [PATCH] driver-core: platform: Avoid to return IRQ 0 in platform_get_irq()

2017-12-05 Thread Dmitry Torokhov
On Tue, Dec 05, 2017 at 11:41:52PM +0530, Arvind Yadav wrote: > Function platform_get_irq() can return 0. Which means NO_IRQ. > So this change will not allow to return 0. > > This change is help to use platform_get_irq() without this, > > val = platform_get_irq(); > if (val <= 0) >