diff options
author | Arend van Spriel <arend@broadcom.com> | 2011-06-09 14:07:20 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-06-10 14:57:53 -0400 |
commit | e3ae0cac00042d7fb76914c30c5f991f918e65b4 (patch) | |
tree | 11409e2b18d9f0bf52609c1ddd57bdaffc4709c2 /drivers/bcma | |
parent | 5b49b35a671e59c16c33611ea2d5650438388663 (diff) |
drivers: bcma: export bcma_core_disable() function
In the brcm80211 driver we disable the 80211 core when the driver is
'down'. The bcma_core_disable() function exactly does the same as
our implementation so exporting this function makes sense.
Cc: linux-wireless@vger.kernel.org
Cc: Rafal Milecki <zajec5@gmail.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/bcma')
-rw-r--r-- | drivers/bcma/core.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/bcma/core.c b/drivers/bcma/core.c index ced379f7b371..1ec7d4528dd0 100644 --- a/drivers/bcma/core.c +++ b/drivers/bcma/core.c | |||
@@ -19,7 +19,7 @@ bool bcma_core_is_enabled(struct bcma_device *core) | |||
19 | } | 19 | } |
20 | EXPORT_SYMBOL_GPL(bcma_core_is_enabled); | 20 | EXPORT_SYMBOL_GPL(bcma_core_is_enabled); |
21 | 21 | ||
22 | static void bcma_core_disable(struct bcma_device *core, u32 flags) | 22 | void bcma_core_disable(struct bcma_device *core, u32 flags) |
23 | { | 23 | { |
24 | if (bcma_aread32(core, BCMA_RESET_CTL) & BCMA_RESET_CTL_RESET) | 24 | if (bcma_aread32(core, BCMA_RESET_CTL) & BCMA_RESET_CTL_RESET) |
25 | return; | 25 | return; |
@@ -31,6 +31,7 @@ static void bcma_core_disable(struct bcma_device *core, u32 flags) | |||
31 | bcma_awrite32(core, BCMA_RESET_CTL, BCMA_RESET_CTL_RESET); | 31 | bcma_awrite32(core, BCMA_RESET_CTL, BCMA_RESET_CTL_RESET); |
32 | udelay(1); | 32 | udelay(1); |
33 | } | 33 | } |
34 | EXPORT_SYMBOL_GPL(bcma_core_disable); | ||
34 | 35 | ||
35 | int bcma_core_enable(struct bcma_device *core, u32 flags) | 36 | int bcma_core_enable(struct bcma_device *core, u32 flags) |
36 | { | 37 | { |