diff options
author | Xinming Hu <huxm@marvell.com> | 2016-11-30 20:22:17 +0530 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2017-01-12 16:46:23 +0200 |
commit | 045f0c1b5e26818e28a401e623a581dfbd6b371e (patch) | |
tree | bdd9da44fa6ecade8e362ceefddf8fbde60547bd /include | |
parent | 90ff71f9557591218b5fce1ce7b67afd4cf83894 (diff) |
mwifiex: get rid of global user_rmmod flag
bus.remove() callback function is called when user removes this module
from kernel space or ejects the card from the slot. The driver handles
these 2 cases differently. Few commands (FUNC_SHUTDOWN etc.) are sent to
the firmware only for module unload case.
The variable 'user_rmmod' is used to distinguish between these two
scenarios.
This patch checks hardware status and get rid of global variable
user_rmmod.
Signed-off-by: Xinming Hu <huxm@marvell.com>
Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions