diff options
author | Adrian Bunk <bunk@kernel.org> | 2008-07-17 15:16:26 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-07-20 20:24:39 -0400 |
commit | 22deb527ce5d13e07652f81a53032aa0214ea8c3 (patch) | |
tree | f2a0cd4e2db54f31067e41287eb66fddeb2ed552 /arch/m68k/q40/config.c | |
parent | 8dfbdf4abad6e5a7bbd097bf7e2c0ec41e0c54b4 (diff) |
m68k/q40/config.c: make functions static
This patch makes the following needlessly global functions static:
- q40_reset()
- q40_halt()
- q40_disable_irqs()
- q40_gettimeoffset()
- q40_hwclk()
- q40_get_ss()
- q40_set_clock_mmss()
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/q40/config.c')
-rw-r--r-- | arch/m68k/q40/config.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/arch/m68k/q40/config.c b/arch/m68k/q40/config.c index 476e18eca758..be9de2f3dc48 100644 --- a/arch/m68k/q40/config.c +++ b/arch/m68k/q40/config.c | |||
@@ -41,14 +41,12 @@ static void q40_get_model(char *model); | |||
41 | static int q40_get_hardware_list(char *buffer); | 41 | static int q40_get_hardware_list(char *buffer); |
42 | extern void q40_sched_init(irq_handler_t handler); | 42 | extern void q40_sched_init(irq_handler_t handler); |
43 | 43 | ||
44 | extern unsigned long q40_gettimeoffset(void); | 44 | static unsigned long q40_gettimeoffset(void); |
45 | extern int q40_hwclk(int, struct rtc_time *); | 45 | static int q40_hwclk(int, struct rtc_time *); |
46 | extern unsigned int q40_get_ss(void); | 46 | static unsigned int q40_get_ss(void); |
47 | extern int q40_set_clock_mmss(unsigned long); | 47 | static int q40_set_clock_mmss(unsigned long); |
48 | static int q40_get_rtc_pll(struct rtc_pll_info *pll); | 48 | static int q40_get_rtc_pll(struct rtc_pll_info *pll); |
49 | static int q40_set_rtc_pll(struct rtc_pll_info *pll); | 49 | static int q40_set_rtc_pll(struct rtc_pll_info *pll); |
50 | extern void q40_reset(void); | ||
51 | void q40_halt(void); | ||
52 | extern void q40_waitbut(void); | 50 | extern void q40_waitbut(void); |
53 | void q40_set_vectors(void); | 51 | void q40_set_vectors(void); |
54 | 52 | ||
@@ -127,7 +125,7 @@ static void q40_heartbeat(int on) | |||
127 | } | 125 | } |
128 | #endif | 126 | #endif |
129 | 127 | ||
130 | void q40_reset(void) | 128 | static void q40_reset(void) |
131 | { | 129 | { |
132 | halted = 1; | 130 | halted = 1; |
133 | printk("\n\n*******************************************\n" | 131 | printk("\n\n*******************************************\n" |
@@ -137,7 +135,8 @@ void q40_reset(void) | |||
137 | while (1) | 135 | while (1) |
138 | ; | 136 | ; |
139 | } | 137 | } |
140 | void q40_halt(void) | 138 | |
139 | static void q40_halt(void) | ||
141 | { | 140 | { |
142 | halted = 1; | 141 | halted = 1; |
143 | printk("\n\n*******************\n" | 142 | printk("\n\n*******************\n" |
@@ -165,7 +164,8 @@ static unsigned int serports[] = | |||
165 | { | 164 | { |
166 | 0x3f8,0x2f8,0x3e8,0x2e8,0 | 165 | 0x3f8,0x2f8,0x3e8,0x2e8,0 |
167 | }; | 166 | }; |
168 | void q40_disable_irqs(void) | 167 | |
168 | static void q40_disable_irqs(void) | ||
169 | { | 169 | { |
170 | unsigned i, j; | 170 | unsigned i, j; |
171 | 171 | ||
@@ -227,7 +227,7 @@ static inline unsigned char bin2bcd(unsigned char b) | |||
227 | } | 227 | } |
228 | 228 | ||
229 | 229 | ||
230 | unsigned long q40_gettimeoffset(void) | 230 | static unsigned long q40_gettimeoffset(void) |
231 | { | 231 | { |
232 | return 5000 * (ql_ticks != 0); | 232 | return 5000 * (ql_ticks != 0); |
233 | } | 233 | } |
@@ -248,7 +248,7 @@ unsigned long q40_gettimeoffset(void) | |||
248 | * }; | 248 | * }; |
249 | */ | 249 | */ |
250 | 250 | ||
251 | int q40_hwclk(int op, struct rtc_time *t) | 251 | static int q40_hwclk(int op, struct rtc_time *t) |
252 | { | 252 | { |
253 | if (op) { | 253 | if (op) { |
254 | /* Write.... */ | 254 | /* Write.... */ |
@@ -285,7 +285,7 @@ int q40_hwclk(int op, struct rtc_time *t) | |||
285 | return 0; | 285 | return 0; |
286 | } | 286 | } |
287 | 287 | ||
288 | unsigned int q40_get_ss(void) | 288 | static unsigned int q40_get_ss(void) |
289 | { | 289 | { |
290 | return bcd2bin(Q40_RTC_SECS); | 290 | return bcd2bin(Q40_RTC_SECS); |
291 | } | 291 | } |
@@ -295,7 +295,7 @@ unsigned int q40_get_ss(void) | |||
295 | * clock is out by > 30 minutes. Logic lifted from atari code. | 295 | * clock is out by > 30 minutes. Logic lifted from atari code. |
296 | */ | 296 | */ |
297 | 297 | ||
298 | int q40_set_clock_mmss(unsigned long nowtime) | 298 | static int q40_set_clock_mmss(unsigned long nowtime) |
299 | { | 299 | { |
300 | int retval = 0; | 300 | int retval = 0; |
301 | short real_seconds = nowtime % 60, real_minutes = (nowtime / 60) % 60; | 301 | short real_seconds = nowtime % 60, real_minutes = (nowtime / 60) % 60; |