]> git.baikalelectronics.ru Git - kernel.git/commit
of/irq: Get rid of NO_IRQ usage
authorAnton Vorontsov <anton.vorontsov@linaro.org>
Tue, 6 Dec 2011 23:16:26 +0000 (03:16 +0400)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 7 Dec 2011 17:06:37 +0000 (09:06 -0800)
commit741e49fd1b6826c59b548da90b94541377155f79
treec5c7cf7855c065858b72eae658b34426cfce665d
parent352ed02a8e121850a8e4b2b60b9f164b5c1eede1
of/irq: Get rid of NO_IRQ usage

PPC32/64 defines NO_IRQ to zero, so no problems expected.
ARM defines NO_IRQ to -1, but OF code relies on IRQ domains support,
which returns correct ('0') value in 'no irq' case. So everything
should be fine.

Other arches might break if some of their OF drivers rely on NO_IRQ
being not 0. If so, the drivers must be fixed, finally.

[ Rob Herring points out that microblaze should be fixed, and has posted
  a patch for testing for that.   - Linus ]

Signed-off-by: Anton Vorontsov <anton.vorontsov@linaro.org>
Acked-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/of/irq.c