https://github.com/torvalds/linux
Revision 77a7300abad7fe01891b400e88d746f97307ee5a authored by Anton Vorontsov on 06 December 2011, 23:16:26 UTC, committed by Linus Torvalds on 07 December 2011, 17:06:37 UTC
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>
1 parent 10ec5e6
History
Tip revision: 77a7300abad7fe01891b400e88d746f97307ee5a authored by Anton Vorontsov on 06 December 2011, 23:16:26 UTC
of/irq: Get rid of NO_IRQ usage
Tip revision: 77a7300
File Mode Size
Makefile -rw-r--r-- 394 bytes
compat.c -rw-r--r-- 17.0 KB
compat_mq.c -rw-r--r-- 4.1 KB
ipc_sysctl.c -rw-r--r-- 6.0 KB
ipcns_notifier.c -rw-r--r-- 2.2 KB
mq_sysctl.c -rw-r--r-- 2.7 KB
mqueue.c -rw-r--r-- 30.5 KB
msg.c -rw-r--r-- 20.9 KB
msgutil.c -rw-r--r-- 2.8 KB
namespace.c -rw-r--r-- 4.3 KB
sem.c -rw-r--r-- 42.1 KB
shm.c -rw-r--r-- 29.1 KB
syscall.c -rw-r--r-- 2.3 KB
util.c -rw-r--r-- 22.8 KB
util.h -rw-r--r-- 5.3 KB

back to top