Skip to content

Commit 29f42eb

Browse files
bvanasscheKAGA-KOKO
authored andcommitted
powerpc/cell: 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]> Acked-by: Michael Ellerman <[email protected]> (powerpc) Link: https://lore.kernel.org/all/[email protected]
1 parent f90ff31 commit 29f42eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/powerpc/platforms/cell/axon_msi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ static void axon_msi_cascade(struct irq_desc *desc)
112112
pr_devel("axon_msi: woff %x roff %x msi %x\n",
113113
write_offset, msic->read_offset, msi);
114114

115-
if (msi < nr_irqs && irq_get_chip_data(msi) == msic) {
115+
if (msi < irq_get_nr_irqs() && irq_get_chip_data(msi) == msic) {
116116
generic_handle_irq(msi);
117117
msic->fifo_virt[idx] = cpu_to_le32(0xffffffff);
118118
} else {

0 commit comments

Comments
 (0)