[PATCH v2 05/12] [POWERPC] Export mpc52xx_map_node() routine symbol

Marian Balakowicz m8 at semihalf.com
Sun Nov 4 10:52:40 EST 2007


Make, so far static, mpc52xx_map_node() routine
symbol available for general use.

Signed-off-by: Marian Balakowicz <m8 at semihalf.com>
---

 arch/powerpc/platforms/52xx/mpc52xx_common.c |    4 +++-
 include/asm-powerpc/mpc52xx.h                |    1 +
 2 files changed, 4 insertions(+), 1 deletions(-)


diff --git a/arch/powerpc/platforms/52xx/mpc52xx_common.c b/arch/powerpc/platforms/52xx/mpc52xx_common.c
index 2df97c5..14e20ce 100644
--- a/arch/powerpc/platforms/52xx/mpc52xx_common.c
+++ b/arch/powerpc/platforms/52xx/mpc52xx_common.c
@@ -26,7 +26,7 @@
  */
 static volatile struct mpc52xx_gpt *mpc52xx_wdt = NULL;
 
-static void __iomem *
+void __iomem *
 mpc52xx_map_node(struct device_node *ofn)
 {
 	const u32 *regaddr_p;
@@ -48,6 +48,8 @@ mpc52xx_map_node(struct device_node *ofn)
 	return ioremap((u32)regaddr64, (u32)size64);
 }
 
+EXPORT_SYMBOL(mpc52xx_map_node);
+
 void __iomem *
 mpc52xx_find_and_map(const char *compatible)
 {
diff --git a/include/asm-powerpc/mpc52xx.h b/include/asm-powerpc/mpc52xx.h
index d7efbe0..1887b13 100644
--- a/include/asm-powerpc/mpc52xx.h
+++ b/include/asm-powerpc/mpc52xx.h
@@ -248,6 +248,7 @@ struct mpc52xx_cdm {
 
 #ifndef __ASSEMBLY__
 
+extern void __iomem * mpc52xx_map_node(struct device_node *);
 extern void __iomem * mpc52xx_find_and_map(const char *);
 extern void __iomem * mpc52xx_find_and_map_path(const char *path);
 extern unsigned int mpc52xx_find_ipb_freq(struct device_node *node);




More information about the Linuxppc-dev mailing list