[ldv-project] [question] De-registration does not remove port

Saubhik Mukherjee saubhik.mukherjee at gmail.com
Wed Jun 23 09:12:36 MSK 2021


In drivers/tty/serial/arc_uart.c, arc_serial_remove always returns 0, 
instead of calling uart_remove_one_port to remove uart port from serial 
core. The comment says "This will be never be called". In my 
understanding, a port added using uart_add_one_port should be removed 
during de-registration.

Is there a reason for this behavior?



More information about the ldv-project mailing list