aboutsummaryrefslogtreecommitdiffstats
path: root/arch/m68knommu
diff options
context:
space:
mode:
authorGreg Ungerer <gerg@snapgear.com>2007-07-19 04:49:15 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-07-19 13:04:51 -0400
commit10146801e8b960d7473e350b60458d9d5a2be1cf (patch)
tree98b42daabeda36e89202265dd2e83c9d4703602a /arch/m68knommu
parenta4c8b9159000018b0c641b844795a4de4e954582 (diff)
m68knommu: remove is_in_rom() function
Remove is_in_rom() function. It doesn't actually serve the purpose it was intended to. If you look at the use of it _access_ok() (which is the only use of it) then it is obvious that most of memory is marked as access_ok. No point having is_in_rom() then, so remove it. Signed-off-by: Greg Ungerer <gerg@uclinux.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/m68knommu')
-rw-r--r--arch/m68knommu/kernel/m68k_ksyms.c2
-rw-r--r--arch/m68knommu/mm/memory.c20
2 files changed, 0 insertions, 22 deletions
diff --git a/arch/m68knommu/kernel/m68k_ksyms.c b/arch/m68knommu/kernel/m68k_ksyms.c
index 25327c9eadd7..f795062aba1e 100644
--- a/arch/m68knommu/kernel/m68k_ksyms.c
+++ b/arch/m68knommu/kernel/m68k_ksyms.c
@@ -81,8 +81,6 @@ EXPORT_SYMBOL(__mulsi3);
81EXPORT_SYMBOL(__udivsi3); 81EXPORT_SYMBOL(__udivsi3);
82EXPORT_SYMBOL(__umodsi3); 82EXPORT_SYMBOL(__umodsi3);
83 83
84EXPORT_SYMBOL(is_in_rom);
85
86#ifdef CONFIG_COLDFIRE 84#ifdef CONFIG_COLDFIRE
87extern unsigned int *dma_device_address; 85extern unsigned int *dma_device_address;
88extern unsigned long dma_base_addr, _ramend; 86extern unsigned long dma_base_addr, _ramend;
diff --git a/arch/m68knommu/mm/memory.c b/arch/m68knommu/mm/memory.c
index 1a66b71035a4..f93b88b51f9f 100644
--- a/arch/m68knommu/mm/memory.c
+++ b/arch/m68knommu/mm/memory.c
@@ -33,23 +33,3 @@ unsigned long kernel_map(unsigned long paddr, unsigned long size,
33 return paddr; 33 return paddr;
34} 34}
35 35
36
37int is_in_rom(unsigned long addr)
38{
39 extern unsigned long _ramstart, _ramend;
40
41 /*
42 * What we are really trying to do is determine if addr is
43 * in an allocated kernel memory region. If not then assume
44 * we cannot free it or otherwise de-allocate it. Ideally
45 * we could restrict this to really being in a ROM or flash,
46 * but that would need to be done on a board by board basis,
47 * not globally.
48 */
49 if ((addr < _ramstart) || (addr >= _ramend))
50 return(1);
51
52 /* Default case, not in ROM */
53 return(0);
54}
55