Skip to content

Commit d1a9a2f

Browse files
bvanasscheKAGA-KOKO
authored andcommitted
serial: amba-pl011: 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 3905fb8 commit d1a9a2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/tty/serial/amba-pl011.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2202,7 +2202,7 @@ static int pl011_verify_port(struct uart_port *port, struct serial_struct *ser)
22022202

22032203
if (ser->type != PORT_UNKNOWN && ser->type != PORT_AMBA)
22042204
ret = -EINVAL;
2205-
if (ser->irq < 0 || ser->irq >= nr_irqs)
2205+
if (ser->irq < 0 || ser->irq >= irq_get_nr_irqs())
22062206
ret = -EINVAL;
22072207
if (ser->baud_base < 9600)
22082208
ret = -EINVAL;

0 commit comments

Comments
 (0)