Commit e3ae0cac authored by Arend van Spriel's avatar Arend van Spriel Committed by John W. Linville

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: default avatarArend van Spriel <arend@broadcom.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 5b49b35a
...@@ -19,7 +19,7 @@ bool bcma_core_is_enabled(struct bcma_device *core) ...@@ -19,7 +19,7 @@ bool bcma_core_is_enabled(struct bcma_device *core)
} }
EXPORT_SYMBOL_GPL(bcma_core_is_enabled); EXPORT_SYMBOL_GPL(bcma_core_is_enabled);
static void bcma_core_disable(struct bcma_device *core, u32 flags) void bcma_core_disable(struct bcma_device *core, u32 flags)
{ {
if (bcma_aread32(core, BCMA_RESET_CTL) & BCMA_RESET_CTL_RESET) if (bcma_aread32(core, BCMA_RESET_CTL) & BCMA_RESET_CTL_RESET)
return; return;
...@@ -31,6 +31,7 @@ static void bcma_core_disable(struct bcma_device *core, u32 flags) ...@@ -31,6 +31,7 @@ static void bcma_core_disable(struct bcma_device *core, u32 flags)
bcma_awrite32(core, BCMA_RESET_CTL, BCMA_RESET_CTL_RESET); bcma_awrite32(core, BCMA_RESET_CTL, BCMA_RESET_CTL_RESET);
udelay(1); udelay(1);
} }
EXPORT_SYMBOL_GPL(bcma_core_disable);
int bcma_core_enable(struct bcma_device *core, u32 flags) int bcma_core_enable(struct bcma_device *core, u32 flags)
{ {
......
...@@ -244,6 +244,7 @@ void bcma_awrite32(struct bcma_device *core, u16 offset, u32 value) ...@@ -244,6 +244,7 @@ void bcma_awrite32(struct bcma_device *core, u16 offset, u32 value)
} }
extern bool bcma_core_is_enabled(struct bcma_device *core); extern bool bcma_core_is_enabled(struct bcma_device *core);
extern void bcma_core_disable(struct bcma_device *core, u32 flags);
extern int bcma_core_enable(struct bcma_device *core, u32 flags); extern int bcma_core_enable(struct bcma_device *core, u32 flags);
#endif /* LINUX_BCMA_H_ */ #endif /* LINUX_BCMA_H_ */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment