Skip to content

Commit d0c62d5

Browse files
bvanasscheKAGA-KOKO
authored andcommitted
sh: intc: Switch to irq_get_nr_irqs()
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 <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Link: https://lore.kernel.org/all/[email protected]
1 parent 18444d3 commit d0c62d5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/sh/intc/virq-debugfs.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
static int intc_irq_xlate_show(struct seq_file *m, void *priv)
2020
{
21+
const unsigned int nr_irqs = irq_get_nr_irqs();
2122
int i;
2223

2324
seq_printf(m, "%-5s %-7s %-15s\n", "irq", "enum", "chip name");

0 commit comments

Comments
 (0)