linux/arch/powerpc/platforms/ps3
Michael Ellerman ef24ba7091 powerpc: Remove all usages of NO_IRQ
NO_IRQ has been == 0 on powerpc for just over ten years (since commit
0ebfff1491 ("[POWERPC] Add new interrupt mapping core and change
platforms to use it")). It's also 0 on most other arches.

Although it's fairly harmless, every now and then it causes confusion
when a driver is built on powerpc and another arch which doesn't define
NO_IRQ. There's at least 6 definitions of NO_IRQ in drivers/, at least
some of which are to work around that problem.

So we'd like to remove it. This is fairly trivial in the arch code, we
just convert:

    if (irq == NO_IRQ)	to	if (!irq)
    if (irq != NO_IRQ)	to	if (irq)
    irq = NO_IRQ;	to	irq = 0;
    return NO_IRQ;	to	return 0;

And a few other odd cases as well.

At least for now we keep the #define NO_IRQ, because there is driver
code that uses NO_IRQ and the fixes to remove those will go via other
trees.

Note we also change some occurrences in PPC sound drivers, drivers/ps3,
and drivers/macintosh.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
2016-09-20 20:57:12 +10:00
..
Kconfig powerpc: Kconfig: remove BE-only platforms from LE kernel build 2015-09-29 22:57:00 +10:00
Makefile powerpc/ps3: Add gelic udbg driver 2011-09-20 09:20:05 +10:00
device-init.c powerpc/ps3: fix spelling mistake in function name 2016-09-13 17:37:06 +10:00
exports.c powerpc: remove non-required uses of include <linux/module.h> 2011-10-31 19:30:44 -04:00
gelic_udbg.c powerpc/ps3: gelic_udbg: use struct udphdr from <linux/udp.h> 2016-03-01 19:27:20 +11:00
htab.c powerpc/mm: Move hash table ops to a separate structure 2016-07-21 18:59:09 +10:00
hvcall.S [POWERPC] ps3: add lv1 hvcalls 2006-12-04 20:40:44 +11:00
interrupt.c powerpc: Remove all usages of NO_IRQ 2016-09-20 20:57:12 +10:00
mm.c powerpc/ps3: Write highmem info to repository 2015-01-22 17:31:21 +11:00
os-area.c powerpc/ps3: Remove unused os_area_db_id_video_mode 2015-09-30 10:33:02 +10:00
platform.h powerpc/ps3: Add empty repository highmem routines 2015-01-22 17:31:21 +11:00
repository.c powerpc/ps3: Fix typo in comment reference to CONFIG_PS3_REPOSITORY_WRITE 2016-07-08 22:09:57 +10:00
setup.c powerpc/64: Move 64-bit probe_machine() to later in the boot process 2016-07-21 18:59:22 +10:00
smp.c powerpc: Remove all usages of NO_IRQ 2016-09-20 20:57:12 +10:00
spu.c powerpc: Remove all usages of NO_IRQ 2016-09-20 20:57:12 +10:00
system-bus.c dma-mapping: use unsigned long for dma_attrs 2016-08-04 08:50:07 -04:00
time.c char/genrtc: remove powerpc support 2016-06-04 00:23:35 +02:00