Skip to content

Commit

Permalink
m68knommu: remove un-needed exporting of COLDFIRE symbols
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Greg Ungerer committed May 24, 2011
1 parent dcc4d72 commit 2c7f3fe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 deletions.
12 changes: 0 additions & 12 deletions arch/m68k/kernel/m68k_ksyms_no.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,3 @@ EXPORT_SYMBOL(__mulsi3);
EXPORT_SYMBOL(__udivsi3);
EXPORT_SYMBOL(__umodsi3);

#ifdef CONFIG_COLDFIRE
extern unsigned int *dma_device_address;
extern unsigned long dma_base_addr, _ramend;
EXPORT_SYMBOL(dma_base_addr);
EXPORT_SYMBOL(dma_device_address);
EXPORT_SYMBOL(_ramend);

extern asmlinkage void trap(void);
extern void *_ramvec;
EXPORT_SYMBOL(trap);
EXPORT_SYMBOL(_ramvec);
#endif /* CONFIG_COLDFIRE */
3 changes: 3 additions & 0 deletions arch/m68k/platform/coldfire/dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
/***************************************************************************/

#include <linux/kernel.h>
#include <linux/module.h>
#include <asm/dma.h>
#include <asm/coldfire.h>
#include <asm/mcfsim.h>
Expand All @@ -33,7 +34,9 @@ unsigned int dma_base_addr[MAX_M68K_DMA_CHANNELS] = {
MCFDMA_BASE3,
#endif
};
EXPORT_SYMBOL(dma_base_addr);

unsigned int dma_device_address[MAX_M68K_DMA_CHANNELS];
EXPORT_SYMBOL(dma_device_address);

/***************************************************************************/

0 comments on commit 2c7f3fe

Please sign in to comment.