Skip to content

Commit

Permalink
m68knommu: move definition of mach_gettod to where it is used
Browse files Browse the repository at this point in the history
The mach_gettod function pointer is only called from the time_no.c
code. So move its actual definition to there too. It is currently in
setup_no.c for no particularly good reason.

Signed-off-by: Greg Ungerer <gerg@uclinux.org>
  • Loading branch information
Greg Ungerer committed Dec 24, 2011
1 parent 5717a02 commit 361a541
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion arch/m68k/kernel/setup_no.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ EXPORT_SYMBOL(memory_end);
char __initdata command_line[COMMAND_LINE_SIZE];

/* machine dependent timer functions */
void (*mach_gettod)(int*, int*, int*, int*, int*, int*);
int (*mach_set_clock_mmss)(unsigned long);

/* machine dependent reboot functions */
Expand Down
3 changes: 3 additions & 0 deletions arch/m68k/kernel/time_no.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@

#define TICK_SIZE (tick_nsec / 1000)

/* machine dependent timer functions */
void (*mach_gettod)(int*, int*, int*, int*, int*, int*);

static inline int set_rtc_mmss(unsigned long nowtime)
{
if (mach_set_clock_mmss)
Expand Down

0 comments on commit 361a541

Please sign in to comment.