Re: [PATCH v1 1/1] driver core: platform: Make platform_get_irq_optional() optional

2021-04-07 Thread Greg Kroah-Hartman
On Tue, Apr 06, 2021 at 12:25:14PM -0700, Guenter Roeck wrote: > On Wed, Mar 31, 2021 at 05:45:26PM +0300, Andy Shevchenko wrote: > > Currently the platform_get_irq_optional() returns an error code even > > if IRQ resource sumply has not been found. It prevents caller to be > > error code agnostic

Re: [PATCH v1 1/1] driver core: platform: Make platform_get_irq_optional() optional

2021-04-07 Thread Andy Shevchenko
On Tue, Apr 06, 2021 at 12:25:14PM -0700, Guenter Roeck wrote: > On Wed, Mar 31, 2021 at 05:45:26PM +0300, Andy Shevchenko wrote: > > Currently the platform_get_irq_optional() returns an error code even > > if IRQ resource sumply has not been found. It prevents caller to be > > error code agnostic

Re: [PATCH v1 1/1] driver core: platform: Make platform_get_irq_optional() optional

2021-04-06 Thread Guenter Roeck
On Wed, Mar 31, 2021 at 05:45:26PM +0300, Andy Shevchenko wrote: > Currently the platform_get_irq_optional() returns an error code even > if IRQ resource sumply has not been found. It prevents caller to be > error code agnostic in their error handling. > > Now: > ret = platform_get_irq_optio

[PATCH v1 1/1] driver core: platform: Make platform_get_irq_optional() optional

2021-03-31 Thread Andy Shevchenko
Currently the platform_get_irq_optional() returns an error code even if IRQ resource sumply has not been found. It prevents caller to be error code agnostic in their error handling. Now: ret = platform_get_irq_optional(...); if (ret != -ENXIO) return ret; // respect