]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
sh: intc: Switch to irq_get_nr_irqs()
authorBart Van Assche <bvanassche@acm.org>
Tue, 15 Oct 2024 19:09:49 +0000 (12:09 -0700)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 16 Oct 2024 19:56:58 +0000 (21:56 +0200)
Use the irq_get_nr_irqs() function instead of the global variable
'nr_irqs'. Prepare for changing 'nr_irqs' from an exported global
variable into a variable with file scope.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/all/20241015190953.1266194-19-bvanassche@acm.org
drivers/sh/intc/virq-debugfs.c

index 939915a07d9997fcc7d6efbb66c0c992d2bf96d1..5dd8febe6da52460282db0a978231e917041e3d4 100644 (file)
@@ -18,6 +18,7 @@
 
 static int intc_irq_xlate_show(struct seq_file *m, void *priv)
 {
+       const unsigned int nr_irqs = irq_get_nr_irqs();
        int i;
 
        seq_printf(m, "%-5s  %-7s  %-15s\n", "irq", "enum", "chip name");