common: Drop linux/delay.h from common header
[oweals/u-boot.git] / arch / arm / mach-orion5x / timer.c
index 92725d30f3741fc4e3d4f7d64666345f23fe69a3..4926bb7779606e48b90a8c939b59b5a5f35d2ba4 100644 (file)
@@ -8,7 +8,10 @@
  */
 
 #include <common.h>
+#include <init.h>
+#include <time.h>
 #include <asm/io.h>
+#include <linux/delay.h>
 
 #define UBOOT_CNTR     0       /* counter to use for uboot timer */
 
@@ -78,7 +81,7 @@ DECLARE_GLOBAL_DATA_PTR;
 #define timestamp gd->arch.tbl
 #define lastdec gd->arch.lastinc
 
-ulong get_timer_masked(void)
+static ulong get_timer_masked(void)
 {
        ulong now = read_timer();
 
@@ -164,7 +167,7 @@ unsigned long long get_ticks(void)
  * This function is derived from PowerPC code (timebase clock frequency).
  * On ARM it returns the number of timer ticks per second.
  */
-ulong get_tbclk (void)
+ulong get_tbclk(void)
 {
        return (ulong)CONFIG_SYS_HZ;
 }