From: Bart Van Assche Date: Tue, 15 Oct 2024 19:09:38 +0000 (-0700) Subject: hpet: Switch to irq_get_nr_irqs() X-Git-Tag: v6.13-rc1~173^2~35 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ce1fa22a659dad1a14ae9ede2063e5bc6c9a86fb;p=thirdparty%2Fkernel%2Flinux.git hpet: 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 Signed-off-by: Thomas Gleixner Link: https://lore.kernel.org/all/20241015190953.1266194-8-bvanassche@acm.org --- diff --git a/drivers/char/hpet.c b/drivers/char/hpet.c index e904e476e49ad..48fe96ab46490 100644 --- a/drivers/char/hpet.c +++ b/drivers/char/hpet.c @@ -162,6 +162,7 @@ static irqreturn_t hpet_interrupt(int irq, void *data) static void hpet_timer_set_irq(struct hpet_dev *devp) { + const unsigned int nr_irqs = irq_get_nr_irqs(); unsigned long v; int irq, gsi; struct hpet_timer __iomem *timer;