summaryrefslogtreecommitdiffstats
path: root/drivers/staging/brcm80211/brcmfmac/dhd_bus.h
diff options
context:
space:
mode:
authorArend van Spriel <arend@broadcom.com>2011-09-12 12:14:53 +0200
committerGreg Kroah-Hartman <gregkh@suse.de>2011-09-12 16:55:45 +0200
commit7b93a42f24caf3ac1c9ad440fb50b1aafd7d2969 (patch)
tree8523f3700986f62ebe7501b08935595df6aa4fc2 /drivers/staging/brcm80211/brcmfmac/dhd_bus.h
parent98ae8a0bf1d2670630023aefb02d75a329fd7271 (diff)
staging: brcm80211: remove static variables from wl_cfg80211.c
The source file contained two static variable which were used by the driver instance. This makes having multiple instances of the driver on one system impossible. This patch removes the use of these static variables allowing multiple driver instances. Reported-by: Johannes Berg <johannes@sipsolutions.net> Reviewed-by: Franky (Zhenhui) Lin <frankyl@broadcom.com> Reviewed-by: Roland Vossen <rvossen@broadcom.com> Signed-off-by: Roland Vossen <rvossen@broadcom.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/brcm80211/brcmfmac/dhd_bus.h')
-rw-r--r--drivers/staging/brcm80211/brcmfmac/dhd_bus.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/staging/brcm80211/brcmfmac/dhd_bus.h b/drivers/staging/brcm80211/brcmfmac/dhd_bus.h
index 3361e015108..aa05b1c5fdc 100644
--- a/drivers/staging/brcm80211/brcmfmac/dhd_bus.h
+++ b/drivers/staging/brcm80211/brcmfmac/dhd_bus.h
@@ -38,6 +38,9 @@ extern uint brcmf_watchdog_ms;
extern int brcmf_bus_register(void);
extern void brcmf_bus_unregister(void);
+/* obtain linux device object providing bus function */
+extern struct device *brcmf_bus_get_device(struct brcmf_bus *bus);
+
/* Stop bus module: clear pending frames, disable data flow */
extern void brcmf_sdbrcm_bus_stop(struct brcmf_bus *bus, bool enforce_mutex);