diff options
author | Kangjie Lu <kjlu@umn.edu> | 2018-12-25 19:26:19 -0600 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-01-08 16:55:42 +0100 |
commit | 51f689cc11333944c7a457f25ec75fcb41e99410 (patch) | |
tree | ab9bdcc0cc67c5d54721383e47d94310c1d7d659 /drivers/tty/serial | |
parent | db4a6cbf699a4b11e358621cb22d452c986842ee (diff) | |
download | linux-51f689cc11333944c7a457f25ec75fcb41e99410.tar.bz2 |
serial: max310x: pass return value of spi_register_driver
spi_register_driver() may fail, so let's pass its return value upstream.
Signed-off-by: Kangjie Lu <kjlu@umn.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial')
-rw-r--r-- | drivers/tty/serial/max310x.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/tty/serial/max310x.c b/drivers/tty/serial/max310x.c index 4f479841769a..eb040d8292a8 100644 --- a/drivers/tty/serial/max310x.c +++ b/drivers/tty/serial/max310x.c @@ -1467,10 +1467,10 @@ static int __init max310x_uart_init(void) return ret; #ifdef CONFIG_SPI_MASTER - spi_register_driver(&max310x_spi_driver); + ret = spi_register_driver(&max310x_spi_driver); #endif - return 0; + return ret; } module_init(max310x_uart_init); |