rsi_91x_sdio: add error handling into rsi_module_init()
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Sat, 7 Jun 2014 03:18:31 +0000 (07:18 +0400)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 19 Jun 2014 19:49:16 +0000 (15:49 -0400)
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>
drivers/net/wireless/rsi/rsi_91x_sdio.c

index 46e7af446f01028ad15eec09e461037bc9f9211c..8428858204a6763a6d4ccfbeb6c2c81a12e7a33f 100644 (file)
@@ -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;
 }
 
 /**