diff options
author | Alexey Khoroshilov <khoroshilov@ispras.ru> | 2014-06-06 23:18:31 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2014-06-19 15:49:16 -0400 |
commit | e860c33f7d05907bb21ea6f0c2b085b75b028e3d (patch) | |
tree | 51a1ee6e171a56db22660160de98ff977bfb6db0 | |
parent | b101426aae371b91ad10c7553e54725cc5844e4a (diff) |
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>
-rw-r--r-- | drivers/net/wireless/rsi/rsi_91x_sdio.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/wireless/rsi/rsi_91x_sdio.c b/drivers/net/wireless/rsi/rsi_91x_sdio.c index 46e7af446f01..8428858204a6 100644 --- a/drivers/net/wireless/rsi/rsi_91x_sdio.c +++ b/drivers/net/wireless/rsi/rsi_91x_sdio.c | |||
@@ -820,9 +820,11 @@ static struct sdio_driver rsi_driver = { | |||
820 | */ | 820 | */ |
821 | static int rsi_module_init(void) | 821 | static int rsi_module_init(void) |
822 | { | 822 | { |
823 | sdio_register_driver(&rsi_driver); | 823 | int ret; |
824 | |||
825 | ret = sdio_register_driver(&rsi_driver); | ||
824 | rsi_dbg(INIT_ZONE, "%s: Registering driver\n", __func__); | 826 | rsi_dbg(INIT_ZONE, "%s: Registering driver\n", __func__); |
825 | return 0; | 827 | return ret; |
826 | } | 828 | } |
827 | 829 | ||
828 | /** | 830 | /** |