Files
linux/drivers/base
Sergei Shtylyov 3fc96b9e2b platform: don't return 0 from platform_get_irq[_byname]() on error
commit e330b9a6bb upstream.

of_irq_get[_byname]() return 0 iff  irq_create_of_mapping() call fails.
Returning both  error code and 0 on failure is a sign of a misdesigned API,
it makes the failure check unnecessarily complex and error prone. We should
rely  on the platform IRQ resource in this case, not return 0,  especially
as 0 can be  a valid  IRQ resource too...

Fixes: aff008ad81 ("platform_get_irq: Revert to platform_get_resource if of_irq_get fails")
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-10-28 03:01:26 -04:00
..
2015-09-17 06:06:54 -07:00
2014-07-04 18:05:05 +01:00
2015-10-04 19:42:22 +01:00
2014-09-01 13:48:59 +02:00