aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Ungerer <gerg@uclinux.org>2011-03-29 00:25:14 -0400
committerGreg Ungerer <gerg@uclinux.org>2011-05-23 20:03:51 -0400
commit2c7f3feb63276f08dd289a2cb29694af17ad70dd (patch)
tree1c320e88b0151a933cdb632a4828db17eda8dd34
parentdcc4d72fad84adcd98cb0a552f4287c1ed06d5d6 (diff)
m68knommu: remove un-needed exporting of COLDFIRE symbols
There is no reason most of the symbols enclosed in a conditional on CONFIG_COLDFIRE need to be exported. And they sure don't need to be doing it in m68k_ksyms_no.c. Move the dma symbols export (which are currently needed) to the definitions of those, and remove the rest of the exporting here. Signed-off-by: Greg Ungerer <gerg@uclinux.org>
-rw-r--r--arch/m68k/kernel/m68k_ksyms_no.c12
-rw-r--r--arch/m68k/platform/coldfire/dma.c3
2 files changed, 3 insertions, 12 deletions
diff --git a/arch/m68k/kernel/m68k_ksyms_no.c b/arch/m68k/kernel/m68k_ksyms_no.c
index 11effaa6d158..db6f87aa0a7f 100644
--- a/arch/m68k/kernel/m68k_ksyms_no.c
+++ b/arch/m68k/kernel/m68k_ksyms_no.c
@@ -42,15 +42,3 @@ EXPORT_SYMBOL(__mulsi3);
42EXPORT_SYMBOL(__udivsi3); 42EXPORT_SYMBOL(__udivsi3);
43EXPORT_SYMBOL(__umodsi3); 43EXPORT_SYMBOL(__umodsi3);
44 44
45#ifdef CONFIG_COLDFIRE
46extern unsigned int *dma_device_address;
47extern unsigned long dma_base_addr, _ramend;
48EXPORT_SYMBOL(dma_base_addr);
49EXPORT_SYMBOL(dma_device_address);
50EXPORT_SYMBOL(_ramend);
51
52extern asmlinkage void trap(void);
53extern void *_ramvec;
54EXPORT_SYMBOL(trap);
55EXPORT_SYMBOL(_ramvec);
56#endif /* CONFIG_COLDFIRE */
diff --git a/arch/m68k/platform/coldfire/dma.c b/arch/m68k/platform/coldfire/dma.c
index e88b95e2cc62..df5ce20d181c 100644
--- a/arch/m68k/platform/coldfire/dma.c
+++ b/arch/m68k/platform/coldfire/dma.c
@@ -9,6 +9,7 @@
9/***************************************************************************/ 9/***************************************************************************/
10 10
11#include <linux/kernel.h> 11#include <linux/kernel.h>
12#include <linux/module.h>
12#include <asm/dma.h> 13#include <asm/dma.h>
13#include <asm/coldfire.h> 14#include <asm/coldfire.h>
14#include <asm/mcfsim.h> 15#include <asm/mcfsim.h>
@@ -33,7 +34,9 @@ unsigned int dma_base_addr[MAX_M68K_DMA_CHANNELS] = {
33 MCFDMA_BASE3, 34 MCFDMA_BASE3,
34#endif 35#endif
35}; 36};
37EXPORT_SYMBOL(dma_base_addr);
36 38
37unsigned int dma_device_address[MAX_M68K_DMA_CHANNELS]; 39unsigned int dma_device_address[MAX_M68K_DMA_CHANNELS];
40EXPORT_SYMBOL(dma_device_address);
38 41
39/***************************************************************************/ 42/***************************************************************************/