Skip to contentSkip to conversation

m68knommu: move definition of mach_gettod to where it is used

PATCH New [email protected] 1 participant 1 message Oct 21, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 m68knommu: move definition of mach_gettod to where it is used

From: Greg Ungerer <[email protected]>

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.

---
 arch/m68k/kernel/setup_no.c |    1 -
 arch/m68k/kernel/time_no.c  |    3 +++
 2 files changed, 3 insertions(+), 1 deletions(-)
arch/m68k/kernel/setup_no.c +0 -1
index 2ed8c0f..ca3df0d 100644
@@ -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 */
arch/m68k/kernel/time_no.c +3 -0
index 6623909..3ef0f77 100644
@@ -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)
Signature · 1 line
1.7.0.4