All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drivers: bcma: export bcma_core_disable() function
@ 2011-06-09 18:07 Arend van Spriel
  2011-06-10 11:40 ` Rafał Miłecki
  2011-06-13 15:29 ` [PATCH] bcma: clean exports of functions Rafał Miłecki
  0 siblings, 2 replies; 8+ messages in thread
From: Arend van Spriel @ 2011-06-09 18:07 UTC (permalink / raw)
  To: linville; +Cc: Arend van Spriel, linux-wireless, Rafal Milecki

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>
---
 drivers/bcma/core.c       |    3 ++-
 include/linux/bcma/bcma.h |    1 +
 2 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/drivers/bcma/core.c b/drivers/bcma/core.c
index ced379f..1ec7d45 100644
--- a/drivers/bcma/core.c
+++ b/drivers/bcma/core.c
@@ -19,7 +19,7 @@ bool bcma_core_is_enabled(struct bcma_device *core)
 }
 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)
 		return;
@@ -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);
 	udelay(1);
 }
+EXPORT_SYMBOL_GPL(bcma_core_disable);
 
 int bcma_core_enable(struct bcma_device *core, u32 flags)
 {
diff --git a/include/linux/bcma/bcma.h b/include/linux/bcma/bcma.h
index 6ff080e..3895aeb 100644
--- a/include/linux/bcma/bcma.h
+++ b/include/linux/bcma/bcma.h
@@ -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 void bcma_core_disable(struct bcma_device *core, u32 flags);
 extern int bcma_core_enable(struct bcma_device *core, u32 flags);
 
 #endif /* LINUX_BCMA_H_ */
-- 
1.7.4.1



^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2011-06-13 14:51 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-09 18:07 [PATCH] drivers: bcma: export bcma_core_disable() function Arend van Spriel
2011-06-10 11:40 ` Rafał Miłecki
2011-06-10 11:46   ` Arend van Spriel
2011-06-10 13:39     ` Michael Büsch
2011-06-10 13:40       ` John W. Linville
2011-06-10 16:29         ` Arend van Spriel
2011-06-10 17:19           ` Rafał Miłecki
2011-06-13 15:29 ` [PATCH] bcma: clean exports of functions Rafał Miłecki

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.