summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/aha152x.c
diff options
context:
space:
mode:
authorBart Van Assche <bvanassche@acm.org>2024-10-15 21:09:42 +0200
committerThomas Gleixner <tglx@linutronix.de>2024-10-16 21:56:58 +0200
commit03f039def8332fef5efd93795291ad13cb187d65 (patch)
tree1e7fcf3df1ea3142ecc20b1fdcf5ab8380b61b68 /drivers/scsi/aha152x.c
parentnet: hamradio: scc: Switch to irq_get_nr_irqs() (diff)
downloadlinux-03f039def8332fef5efd93795291ad13cb187d65.tar.xz
linux-03f039def8332fef5efd93795291ad13cb187d65.zip
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 <bvanassche@acm.org> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Link: https://lore.kernel.org/all/20241015190953.1266194-12-bvanassche@acm.org
Diffstat (limited to 'drivers/scsi/aha152x.c')
-rw-r--r--drivers/scsi/aha152x.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/aha152x.c b/drivers/scsi/aha152x.c
index a0fb330b8df5..4276f868cd91 100644
--- a/drivers/scsi/aha152x.c
+++ b/drivers/scsi/aha152x.c
@@ -295,7 +295,7 @@ CMD_INC_RESID(struct scsi_cmnd *cmd, int inc)
#else
#define IRQ_MIN 9
#if defined(__PPC)
-#define IRQ_MAX (nr_irqs-1)
+#define IRQ_MAX (irq_get_nr_irqs()-1)
#else
#define IRQ_MAX 12
#endif