Re: [PATCH] tty: evh_bytechan: Replace NO_IRQ by 0

2022-10-06 Thread Laurentiu Tudor
On 10/6/2022 8:20 AM, Christophe Leroy wrote: NO_IRQ is used to check the return of irq_of_parse_and_map(). On some architecture NO_IRQ is 0, on other architectures it is -1. irq_of_parse_and_map() returns 0 on error, independent of NO_IRQ. So use 0 instead of using NO_IRQ. Signed-off-by:

Re: [PATCH] tty: evh_bytechan: Replace NO_IRQ by 0

2022-10-05 Thread Jiri Slaby
On 06. 10. 22, 7:20, Christophe Leroy wrote: NO_IRQ is used to check the return of irq_of_parse_and_map(). On some architecture NO_IRQ is 0, on other architectures it is -1. irq_of_parse_and_map() returns 0 on error, independent of NO_IRQ. So use 0 instead of using NO_IRQ. Signed-off-by: Chri

[PATCH] tty: evh_bytechan: Replace NO_IRQ by 0

2022-10-05 Thread Christophe Leroy
NO_IRQ is used to check the return of irq_of_parse_and_map(). On some architecture NO_IRQ is 0, on other architectures it is -1. irq_of_parse_and_map() returns 0 on error, independent of NO_IRQ. So use 0 instead of using NO_IRQ. Signed-off-by: Christophe Leroy --- drivers/tty/ehv_bytechan.c |