浏览代码

m68knommu: move definition of mach_gettod to where it is used

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>
Greg Ungerer 14 年之前
父节点
当前提交
361a541dc2
共有 2 个文件被更改,包括 3 次插入1 次删除
  1. 0 1
      arch/m68k/kernel/setup_no.c
  2. 3 0
      arch/m68k/kernel/time_no.c

+ 0 - 1
arch/m68k/kernel/setup_no.c

@@ -47,7 +47,6 @@ EXPORT_SYMBOL(memory_end);
 char __initdata command_line[COMMAND_LINE_SIZE];
 char __initdata command_line[COMMAND_LINE_SIZE];
 
 
 /* machine dependent timer functions */
 /* machine dependent timer functions */
-void (*mach_gettod)(int*, int*, int*, int*, int*, int*);
 int (*mach_set_clock_mmss)(unsigned long);
 int (*mach_set_clock_mmss)(unsigned long);
 
 
 /* machine dependent reboot functions */
 /* machine dependent reboot functions */

+ 3 - 0
arch/m68k/kernel/time_no.c

@@ -26,6 +26,9 @@
 
 
 #define	TICK_SIZE (tick_nsec / 1000)
 #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)
 static inline int set_rtc_mmss(unsigned long nowtime)
 {
 {
 	if (mach_set_clock_mmss)
 	if (mach_set_clock_mmss)