From: Alexey Khoroshilov Date: Sat, 7 Jun 2014 03:18:31 +0000 (+0400) Subject: rsi_91x_sdio: add error handling into rsi_module_init() X-Git-Tag: firefly_0821_release~176^2~3474^2~12^2~179^2~136 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=e860c33f7d05907bb21ea6f0c2b085b75b028e3d;p=firefly-linux-kernel-4.4.55.git 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 Signed-off-by: John W. Linville --- 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 = { */ 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; } /**