mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-30 04:26:41 +07:00
rsi_91x_sdio: add error handling into rsi_module_init()
Fix rsi_module_init() to propagate sdio_register_driver() errors. Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
b101426aae
commit
e860c33f7d
@ -820,9 +820,11 @@ static struct sdio_driver rsi_driver = {
|
||||
*/
|
||||
static int rsi_module_init(void)
|
||||
{
|
||||
sdio_register_driver(&rsi_driver);
|
||||
int ret;
|
||||
|
||||
ret = sdio_register_driver(&rsi_driver);
|
||||
rsi_dbg(INIT_ZONE, "%s: Registering driver\n", __func__);
|
||||
return 0;
|
||||
return ret;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user