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>
This commit is contained in:
Adrian Bunk 2008-07-17 21:16:26 +02:00 committed by Linus Torvalds
parent 8dfbdf4aba
commit 22deb527ce

View file

@ -41,14 +41,12 @@ static void q40_get_model(char *model);
static int q40_get_hardware_list(char *buffer);
extern void q40_sched_init(irq_handler_t handler);
extern unsigned long q40_gettimeoffset(void);
extern int q40_hwclk(int, struct rtc_time *);
extern unsigned int q40_get_ss(void);
extern int q40_set_clock_mmss(unsigned long);
static unsigned long q40_gettimeoffset(void);
static int q40_hwclk(int, struct rtc_time *);
static unsigned int q40_get_ss(void);
static int q40_set_clock_mmss(unsigned long);
static int q40_get_rtc_pll(struct rtc_pll_info *pll);
static int q40_set_rtc_pll(struct rtc_pll_info *pll);
extern void q40_reset(void);
void q40_halt(void);
extern void q40_waitbut(void);
void q40_set_vectors(void);
@ -127,7 +125,7 @@ static void q40_heartbeat(int on)
}
#endif
void q40_reset(void)
static void q40_reset(void)
{
halted = 1;
printk("\n\n*******************************************\n"
@ -137,7 +135,8 @@ void q40_reset(void)
while (1)
;
}
void q40_halt(void)
static void q40_halt(void)
{
halted = 1;
printk("\n\n*******************\n"
@ -165,7 +164,8 @@ static unsigned int serports[] =
{
0x3f8,0x2f8,0x3e8,0x2e8,0
};
void q40_disable_irqs(void)
static void q40_disable_irqs(void)
{
unsigned i, j;
@ -227,7 +227,7 @@ static inline unsigned char bin2bcd(unsigned char b)
}
unsigned long q40_gettimeoffset(void)
static unsigned long q40_gettimeoffset(void)
{
return 5000 * (ql_ticks != 0);
}
@ -248,7 +248,7 @@ unsigned long q40_gettimeoffset(void)
* };
*/
int q40_hwclk(int op, struct rtc_time *t)
static int q40_hwclk(int op, struct rtc_time *t)
{
if (op) {
/* Write.... */
@ -285,7 +285,7 @@ int q40_hwclk(int op, struct rtc_time *t)
return 0;
}
unsigned int q40_get_ss(void)
static unsigned int q40_get_ss(void)
{
return bcd2bin(Q40_RTC_SECS);
}
@ -295,7 +295,7 @@ unsigned int q40_get_ss(void)
* clock is out by > 30 minutes. Logic lifted from atari code.
*/
int q40_set_clock_mmss(unsigned long nowtime)
static int q40_set_clock_mmss(unsigned long nowtime)
{
int retval = 0;
short real_seconds = nowtime % 60, real_minutes = (nowtime / 60) % 60;