linux/arch/powerpc/platforms/embedded6xx
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/legacy_serial: Support MVME5100 UARTS with shifted registers 2014-04-28 17:36:25 +10:00
Makefile powerpc: Delete old PrPMC 280/2800 support 2014-03-07 15:54:48 +11:00
c2k.c powerpc: Get rid of ppc_md.init_early() 2016-07-21 19:07:26 +10:00
flipper-pic.c powerpc: Remove all usages of NO_IRQ 2016-09-20 20:57:12 +10:00
flipper-pic.h powerpc: gamecube/wii: flipper interrupt controller support 2009-12-12 22:24:28 -07:00
gamecube.c powerpc: Get rid of ppc_md.init_early() 2016-07-21 19:07:26 +10:00
hlwd-pic.c powerpc: Remove all usages of NO_IRQ 2016-09-20 20:57:12 +10:00
hlwd-pic.h powerpc: wii: hollywood interrupt controller support 2009-12-12 22:24:30 -07:00
holly.c powerpc: migrate exception table users off module.h and onto extable.h 2016-08-22 11:09:33 +10:00
linkstation.c powerpc: Move 32-bit probe() machine to later in the boot process 2016-07-21 19:06:42 +10:00
ls_uart.c [POWERPC] 82xx and embedded6xx: Use machine_*_initcall() hooks in platform code 2008-01-28 08:30:41 -06:00
mpc10x.h powerpc32: remove ioremap_base 2016-03-11 17:18:02 -06:00
mpc7448_hpc2.c powerpc: migrate exception table users off module.h and onto extable.h 2016-08-22 11:09:33 +10:00
mvme5100.c powerpc: Remove all usages of NO_IRQ 2016-09-20 20:57:12 +10:00
storcenter.c powerpc: Move 32-bit probe() machine to later in the boot process 2016-07-21 19:06:42 +10:00
usbgecko_udbg.c powerpc/gamecube/wii: delete unneeded test before of_node_put 2014-11-10 09:59:35 +11:00
usbgecko_udbg.h powerpc: gamecube/wii: early debugging using usbgecko 2009-12-12 22:24:31 -07:00
wii.c powerpc: Get rid of ppc_md.init_early() 2016-07-21 19:07:26 +10:00