mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 21:22:09 -04:00
staging: wilc1000: fix rmmod failure
This patch fixes rmmod failure. wilc->firmware needs to be set to NULL because
it is used again to check firmware is released when module exit.
Fixes: 8b8ad7bc90 ("staging: wilc1000: rename wilc_firmware in the struct wilc")
Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
c2ba8b2bc2
commit
6f72ed75e5
1 changed files with 1 additions and 0 deletions
|
|
@ -506,6 +506,7 @@ static int wilc1000_firmware_download(struct net_device *dev)
|
|||
PRINT_D(INIT_DBG, "Freeing FW buffer ...\n");
|
||||
PRINT_D(INIT_DBG, "Releasing firmware\n");
|
||||
release_firmware(wilc->firmware);
|
||||
wilc->firmware = NULL;
|
||||
|
||||
PRINT_D(INIT_DBG, "Download Succeeded\n");
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue