Skip to content

Commit

Permalink
m68k/q40/config.c: make functions static
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Adrian Bunk authored and Linus Torvalds committed Jul 21, 2008
1 parent 8dfbdf4 commit 22deb52
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions arch/m68k/q40/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -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"
Expand All @@ -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"
Expand Down Expand Up @@ -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;

Expand Down Expand Up @@ -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);
}
Expand All @@ -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.... */
Expand Down Expand Up @@ -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);
}
Expand All @@ -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;
Expand Down

0 comments on commit 22deb52

Please sign in to comment.