serial: Make uart_remove_one_port() return void
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Fri, 12 May 2023 17:38:10 +0000 (19:38 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 13 May 2023 10:48:16 +0000 (19:48 +0900)
commitd5b3d02d0b107345f2a6ecb5b06f98356f5c97ab
tree9e7cd803947e6b757ba8382d34150d30731f94e4
parent6bd6cd29c92401a101993290051fa55078238a52
serial: Make uart_remove_one_port() return void

The return value is only ever used as a return value for remove callbacks
of platform drivers. This return value is ignored by the driver core.
(The only effect is an error message, but uart_remove_one_port() already
emitted one in this case.)

So the return value isn't used at all and uart_remove_one_port() can be
changed to return void without any loss. Also this better matches the
Linux device model as remove functions are not supposed to fail.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/20230512173810.131447-3-u.kleine-koenig@pengutronix.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/atmel_serial.c
drivers/tty/serial/clps711x.c
drivers/tty/serial/cpm_uart/cpm_uart_core.c
drivers/tty/serial/imx.c
drivers/tty/serial/lantiq.c
drivers/tty/serial/serial_core.c
drivers/tty/serial/st-asc.c
drivers/tty/serial/uartlite.c
drivers/tty/serial/xilinx_uartps.c
include/linux/serial_core.h