Skip to content

Commit 18444d3

Browse files
bvanasscheKAGA-KOKO
authored andcommitted
serial: ucc_uart: 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 b9b5df2 commit 18444d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/tty/serial/ucc_uart.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1045,7 +1045,7 @@ static int qe_uart_verify_port(struct uart_port *port,
10451045
if (ser->type != PORT_UNKNOWN && ser->type != PORT_CPM)
10461046
return -EINVAL;
10471047

1048-
if (ser->irq < 0 || ser->irq >= nr_irqs)
1048+
if (ser->irq < 0 || ser->irq >= irq_get_nr_irqs())
10491049
return -EINVAL;
10501050

10511051
if (ser->baud_base < 9600)

0 commit comments

Comments
 (0)