Skip to content

Commit fb474ac

Browse files
bvanasscheKAGA-KOKO
authored andcommitted
net: 3com: 3c59x: 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 ce1fa22 commit fb474ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/3com/3c59x.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1302,7 +1302,7 @@ static int vortex_probe1(struct device *gendev, void __iomem *ioaddr, int irq,
13021302
if (print_info)
13031303
pr_cont(", IRQ %d\n", dev->irq);
13041304
/* Tell them about an invalid IRQ. */
1305-
if (dev->irq <= 0 || dev->irq >= nr_irqs)
1305+
if (dev->irq <= 0 || dev->irq >= irq_get_nr_irqs())
13061306
pr_warn(" *** Warning: IRQ %d is unlikely to work! ***\n",
13071307
dev->irq);
13081308

0 commit comments

Comments
 (0)