Files
erofs-linux/drivers/tty/serial
Atul Gopinathan 3890e3dea3 serial: max310x: unregister uart driver in case of failure and abort
The macro "spi_register_driver" invokes the function
"__spi_register_driver()" which has a return type of int and can fail,
returning a negative value in such a case. This is currently ignored and
the init() function yields success even if the spi driver failed to
register.

Fix this by collecting the return value of "__spi_register_driver()" and
also unregister the uart driver in case of failure.

Cc: Jiri Slaby <[email protected]>
Signed-off-by: Atul Gopinathan <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2021-05-13 17:30:21 +02:00
..
2021-04-22 13:12:13 +02:00
2021-04-05 08:59:21 +02:00
…
…
…
…
…
2021-04-22 13:12:13 +02:00
…
…
…
…
2021-04-22 12:09:25 +02:00
…
…
2021-04-22 12:09:26 +02:00
…
…
…
…
…
…
…
…
…