Commit 65ba7add0d609bbd035b8d42fafdaf428ac24751

Authored by Rob Herring
Committed by Tom Rini
1 parent efd9bb9c02

time: add weak annotation to timer_read_counter declaration

A weak annotation is needed in order to prevent link errors when
get_ticks is overridden. This fixes sandbox build.

Signed-off-by: Rob Herring <rob.herring@calxeda.com>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -37,7 +37,7 @@
37 37 #endif
38 38 }
39 39 #else
40   -extern unsigned long timer_read_counter(void);
  40 +extern unsigned long __weak timer_read_counter(void);
41 41 #endif
42 42  
43 43 unsigned long long __weak notrace get_ticks(void)