diff options
author | Atul Gopinathan <[email protected]> | 2021-05-03 13:56:38 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2021-05-13 17:30:21 +0200 |
commit | 3890e3dea315f1a257d1b940a2a4e2fa16a7b095 (patch) | |
tree | f1a79359b2cdbc76b513933311e19abb6137eb02 /scripts/gdb/linux/lists.py | |
parent | b0a85abbe92e1a6f3e8580a4590fa7245de7090b (diff) |
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]>
Diffstat (limited to 'scripts/gdb/linux/lists.py')
0 files changed, 0 insertions, 0 deletions