MIPS: Replace setup_irq() by request_irq()
authorafzal mohammed <afzal.mohd.ma@gmail.com>
Thu, 5 Mar 2020 11:57:53 +0000 (17:27 +0530)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Thu, 5 Mar 2020 15:47:35 +0000 (16:47 +0100)
commitac8fd122e070ce0e60c608d4f085f7af77290844
tree9bb3b192caccee46c2ea46b3a3a8d1bd8186039d
parent792a402c2840054533ef56279c212ef6da87d811
MIPS: Replace setup_irq() by request_irq()

request_irq() is preferred over setup_irq(). Invocations of setup_irq()
occur after memory allocators are ready.

Per tglx[1], setup_irq() existed in olden days when allocators were not
ready by the time early interrupts were initialized.

Hence replace setup_irq() by request_irq().

remove_irq() has been replaced by free_irq() as well.

There were build error's during previous version, couple of which was
reported by kbuild test robot <lkp@intel.com> of which one was reported
by Thomas Bogendoerfer <tsbogend@alpha.franken.de> as well. There were a
few more issues including build errors, those also have been fixed.

[1] https://lkml.kernel.org/r/alpine.DEB.2.20.1710191609480.1971@nanos

Signed-off-by: afzal mohammed <afzal.mohd.ma@gmail.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
42 files changed:
arch/mips/alchemy/common/time.c
arch/mips/ar7/irq.c
arch/mips/ath25/ar2315.c
arch/mips/ath25/ar5312.c
arch/mips/bcm63xx/irq.c
arch/mips/cobalt/irq.c
arch/mips/dec/setup.c
arch/mips/emma/markeins/irq.c
arch/mips/include/asm/sni.h
arch/mips/jazz/irq.c
arch/mips/kernel/cevt-bcm1480.c
arch/mips/kernel/cevt-ds1287.c
arch/mips/kernel/cevt-gt641xx.c
arch/mips/kernel/cevt-r4k.c
arch/mips/kernel/cevt-sb1250.c
arch/mips/kernel/cevt-txx9.c
arch/mips/kernel/i8253.c
arch/mips/kernel/rtlx-mt.c
arch/mips/kernel/smp.c
arch/mips/lasat/interrupt.c
arch/mips/loongson2ef/common/bonito-irq.c
arch/mips/loongson2ef/common/cs5536/cs5536_mfgpt.c
arch/mips/loongson2ef/fuloong-2e/irq.c
arch/mips/loongson2ef/lemote-2f/irq.c
arch/mips/loongson32/common/irq.c
arch/mips/loongson32/common/time.c
arch/mips/loongson64/hpet.c
arch/mips/mti-malta/malta-int.c
arch/mips/netlogic/xlr/fmn.c
arch/mips/pmcs-msp71xx/msp_irq.c
arch/mips/pmcs-msp71xx/msp_smp.c
arch/mips/pmcs-msp71xx/msp_time.c
arch/mips/ralink/cevt-rt3352.c
arch/mips/sgi-ip22/ip22-eisa.c
arch/mips/sgi-ip22/ip22-int.c
arch/mips/sgi-ip32/ip32-irq.c
arch/mips/sni/a20r.c
arch/mips/sni/irq.c
arch/mips/sni/pcit.c
arch/mips/sni/rm200.c
arch/mips/sni/time.c
arch/mips/vr41xx/common/irq.c