summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/mwifiex/main.h
diff options
context:
space:
mode:
authorAmitkumar Karwar <akarwar@marvell.com>2011-06-08 20:39:20 +0530
committerJohn W. Linville <linville@tuxdriver.com>2011-06-10 14:57:52 -0400
commit287546df342daaa146c840ce26b3ed012a055de5 (patch)
treefc00b21c7d28ab5928cee9138c07bb413c073c7e /drivers/net/wireless/mwifiex/main.h
parent7f1f974251493d3929ebd422796e6f9f2bcd6956 (diff)
downloadtalos-op-linux-287546df342daaa146c840ce26b3ed012a055de5.tar.gz
talos-op-linux-287546df342daaa146c840ce26b3ed012a055de5.zip
mwifiex: get rid of global adapter pointer
1) Avoid global adapter pointer usage a) in sdio.c by moving some code from mwifiex_cleanup_module() to mwifiex_sdio_remove(). b) in main.c by passing an extra parameter to few functions. 2) Add new variable "user_rmmod" to identify if mwifiex_sdio_remove() callback function is called in card removal or rmmod context. These code changes are adapted from Libertas driver. 3) Remove unnecessary NULL pointer check for "func" pointer in mwifiex_sdio_remove(). Signed-off-by: Amitkumar Karwar <akarwar@marvell.com> Signed-off-by: Yogesh Ashok Powar <yogeshp@marvell.com> Signed-off-by: Bing Zhao <bzhao@marvell.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/mwifiex/main.h')
-rw-r--r--drivers/net/wireless/mwifiex/main.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/wireless/mwifiex/main.h b/drivers/net/wireless/mwifiex/main.h
index 57b183af72d7..db201cc1473b 100644
--- a/drivers/net/wireless/mwifiex/main.h
+++ b/drivers/net/wireless/mwifiex/main.h
@@ -39,7 +39,6 @@
#include "fw.h"
extern const char driver_version[];
-extern struct mwifiex_adapter *g_adapter;
enum {
MWIFIEX_ASYNC_CMD,
OpenPOWER on IntegriCloud