diff options
author | Adrian Bunk <bunk@kernel.org> | 2008-07-17 15:16:27 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-07-20 20:24:39 -0400 |
commit | 07b8125949de66b6552966de8d4280c3a8620359 (patch) | |
tree | 63452e21b34a57d8bd0ee3341d419781a77adddb /arch/m68k/sun3/config.c | |
parent | 22deb527ce5d13e07652f81a53032aa0214ea8c3 (diff) |
m68k/sun3/: possible cleanups
This patch contains the following possible cleanups:
- make the following needlessly global code static:
- config.c: sun3_bootmem_alloc()
- config.c: sun3_sched_init()
- dvma.c: dvma_page()
- idprom.c: struct Sun_Machines[]
- mmu_emu.c: struct ctx_alloc[]
- sun3dvma.c: iommu_use[]
- sun3ints.c: led_pattern[]
- remove the unused sbus.c
Signed-off-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/m68k/sun3/config.c')
-rw-r--r-- | arch/m68k/sun3/config.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/arch/m68k/sun3/config.c b/arch/m68k/sun3/config.c index c0fbd278fbb1..732087d0735c 100644 --- a/arch/m68k/sun3/config.c +++ b/arch/m68k/sun3/config.c | |||
@@ -36,7 +36,7 @@ extern char _text, _end; | |||
36 | char sun3_reserved_pmeg[SUN3_PMEGS_NUM]; | 36 | char sun3_reserved_pmeg[SUN3_PMEGS_NUM]; |
37 | 37 | ||
38 | extern unsigned long sun3_gettimeoffset(void); | 38 | extern unsigned long sun3_gettimeoffset(void); |
39 | extern void sun3_sched_init(irq_handler_t handler); | 39 | static void sun3_sched_init(irq_handler_t handler); |
40 | extern void sun3_get_model (char* model); | 40 | extern void sun3_get_model (char* model); |
41 | extern void idprom_init (void); | 41 | extern void idprom_init (void); |
42 | extern int sun3_hwclk(int set, struct rtc_time *t); | 42 | extern int sun3_hwclk(int set, struct rtc_time *t); |
@@ -114,7 +114,8 @@ static void sun3_halt (void) | |||
114 | 114 | ||
115 | /* sun3 bootmem allocation */ | 115 | /* sun3 bootmem allocation */ |
116 | 116 | ||
117 | void __init sun3_bootmem_alloc(unsigned long memory_start, unsigned long memory_end) | 117 | static void __init sun3_bootmem_alloc(unsigned long memory_start, |
118 | unsigned long memory_end) | ||
118 | { | 119 | { |
119 | unsigned long start_page; | 120 | unsigned long start_page; |
120 | 121 | ||
@@ -164,7 +165,7 @@ void __init config_sun3(void) | |||
164 | sun3_bootmem_alloc(memory_start, memory_end); | 165 | sun3_bootmem_alloc(memory_start, memory_end); |
165 | } | 166 | } |
166 | 167 | ||
167 | void __init sun3_sched_init(irq_handler_t timer_routine) | 168 | static void __init sun3_sched_init(irq_handler_t timer_routine) |
168 | { | 169 | { |
169 | sun3_disable_interrupts(); | 170 | sun3_disable_interrupts(); |
170 | intersil_clock->cmd_reg=(INTERSIL_RUN|INTERSIL_INT_DISABLE|INTERSIL_24H_MODE); | 171 | intersil_clock->cmd_reg=(INTERSIL_RUN|INTERSIL_INT_DISABLE|INTERSIL_24H_MODE); |