21 lines
617 B
Diff
21 lines
617 B
Diff
reverts https://lore.kernel.org/all/iwlwifi.20211210110539.1f742f0eb58a.I1315f22f6aa632d94ae2069f85e1bca5e734dce0@changeid/
|
|
|
|
--- b/drivers/net/wireless/intel/iwlwifi/iwl-drv.c
|
|
+++ a/drivers/net/wireless/intel/iwlwifi/iwl-drv.c
|
|
@@ -1597,8 +1597,15 @@
|
|
* else from proceeding if the module fails to load
|
|
* or hangs loading.
|
|
*/
|
|
+ if (load_module) {
|
|
- if (load_module)
|
|
request_module("%s", op->name);
|
|
+#ifdef CONFIG_IWLWIFI_OPMODE_MODULAR
|
|
+ if (err)
|
|
+ IWL_ERR(drv,
|
|
+ "failed to load module %s (error %d), is dynamic loading enabled?\n",
|
|
+ op->name, err);
|
|
+#endif
|
|
+ }
|
|
failure = false;
|
|
goto free;
|
|
|