mirror of
https://github.com/torvalds/linux.git
synced 2024-11-21 19:41:42 +00:00
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 <bvanassche@acm.org> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Link: https://lore.kernel.org/all/20241015190953.1266194-19-bvanassche@acm.org
This commit is contained in:
parent
18444d3399
commit
d0c62d51ed
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user