Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drivers/rtc: use nr_irqs

Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>

authored by

Yinghai Lu and committed by
Ingo Molnar
c7576b5b 9130adda

+2 -2
+2 -2
drivers/rtc/rtc-vr41xx.c
··· 360 360 spin_unlock_irq(&rtc_lock); 361 361 362 362 aie_irq = platform_get_irq(pdev, 0); 363 - if (aie_irq < 0 || aie_irq >= NR_IRQS) { 363 + if (aie_irq < 0 || aie_irq >= nr_irqs) { 364 364 retval = -EBUSY; 365 365 goto err_device_unregister; 366 366 } ··· 371 371 goto err_device_unregister; 372 372 373 373 pie_irq = platform_get_irq(pdev, 1); 374 - if (pie_irq < 0 || pie_irq >= NR_IRQS) 374 + if (pie_irq < 0 || pie_irq >= nr_irqs) 375 375 goto err_free_irq; 376 376 377 377 retval = request_irq(pie_irq, rtclong1_interrupt, IRQF_DISABLED,