m68knommu: move definition of mach_gettod to where it is used
authorGreg Ungerer <gerg@uclinux.org>
Wed, 19 Oct 2011 11:37:08 +0000 (21:37 +1000)
committerGreg Ungerer <gerg@uclinux.org>
Sat, 24 Dec 2011 11:47:57 +0000 (21:47 +1000)
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>
arch/m68k/kernel/setup_no.c
arch/m68k/kernel/time_no.c

index 2ed8c0fb1517defe078c1aa38b8f4b7fbf9bf865..ca3df0dc7e8842b25104e90eaad6c290bb71dc7d 100644 (file)
@@ -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 */
index 6623909f70e6f1d00facb0047865c12aa0510509..3ef0f7768dcd52a482acf04636a88fff3bfd335a 100644 (file)
@@ -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)