linux/arch/powerpc/platforms/cell
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
..
spufs powerpc/cell: Add missing error code in spufs_mkgang() 2016-08-09 14:50:18 +10:00
axon_msi.c powerpc: Remove all usages of NO_IRQ 2016-09-20 20:57:12 +10:00
cbe_powerbutton.c
cbe_regs.c powerpc/sparse: Make a bunch of things static 2016-09-13 17:35:47 +10:00
cbe_thermal.c powerpc/cell: cbe_thermal.c: Cleaning up a variable is of the wrong type 2014-06-24 14:05:59 +10:00
cell.h powerpc/cell: Move controller ops from ppc_md to controller_ops 2015-04-11 20:49:17 +10:00
cpufreq_spudemand.c cpufreq: governor: Get rid of governor events 2016-06-02 23:24:15 +02:00
interrupt.c powerpc: Remove all usages of NO_IRQ 2016-09-20 20:57:12 +10:00
interrupt.h
iommu.c powerpc: Remove all usages of NO_IRQ 2016-09-20 20:57:12 +10:00
Kconfig powerpc/cell: Remove the Cell QPACE code 2015-12-14 20:41:50 +11:00
Makefile powerpc/cell: Remove the Cell QPACE code 2015-12-14 20:41:50 +11:00
pervasive.c powerpc: Move cpu_has_feature() to a separate file 2016-08-01 11:15:03 +10:00
pervasive.h
pmu.c powerpc: Remove all usages of NO_IRQ 2016-09-20 20:57:12 +10:00
ras.c powerpc/sparse: Make a bunch of things static 2016-09-13 17:35:47 +10:00
ras.h
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: Drop return value of smp_ops->probe() 2015-04-10 20:02:49 +10:00
spider-pci.c
spider-pic.c powerpc: Remove all usages of NO_IRQ 2016-09-20 20:57:12 +10:00
spu_base.c powerpc: Remove all usages of NO_IRQ 2016-09-20 20:57:12 +10:00
spu_callbacks.c powerpc: Add a proper syscall for switching endianness 2015-03-28 22:03:40 +11:00
spu_manage.c powerpc: Remove all usages of NO_IRQ 2016-09-20 20:57:12 +10:00
spu_notify.c powerpc: fix implicit notifier use in converting to export.h 2011-10-31 19:30:41 -04:00
spu_priv1_mmio.c powerpc: remove non-required uses of include <linux/module.h> 2011-10-31 19:30:44 -04:00
spu_priv1_mmio.h
spu_syscalls.c powerpc/cell: Fix compilation with CONFIG_COREDUMP=n 2014-07-11 12:55:05 +10:00