Skip to content

Commit 03f039d

Browse files
bvanasscheKAGA-KOKO
authored andcommitted
scsi: aha152x: 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 4e69f13 commit 03f039d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/scsi/aha152x.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ CMD_INC_RESID(struct scsi_cmnd *cmd, int inc)
295295
#else
296296
#define IRQ_MIN 9
297297
#if defined(__PPC)
298-
#define IRQ_MAX (nr_irqs-1)
298+
#define IRQ_MAX (irq_get_nr_irqs()-1)
299299
#else
300300
#define IRQ_MAX 12
301301
#endif

0 commit comments

Comments
 (0)