Commit 51f689cc authored by Kangjie Lu's avatar Kangjie Lu Committed by Greg Kroah-Hartman

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: default avatarKangjie Lu <kjlu@umn.edu>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent db4a6cbf
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment