summaryrefslogtreecommitdiff
path: root/drivers/tty/serial
diff options
context:
space:
mode:
authorKangjie Lu <kjlu@umn.edu>2018-12-26 04:26:19 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-01-08 18:55:42 +0300
commit51f689cc11333944c7a457f25ec75fcb41e99410 (patch)
treeab9bdcc0cc67c5d54721383e47d94310c1d7d659 /drivers/tty/serial
parentdb4a6cbf699a4b11e358621cb22d452c986842ee (diff)
downloadlinux-51f689cc11333944c7a457f25ec75fcb41e99410.tar.xz
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.c4
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);