@@ -160,13 +160,12 @@ static inline uint32_t timer_read(void)
160
160
return readl (__io_address (ST_BASE + 0x04 ));
161
161
}
162
162
163
+ #ifdef ARCH_HAS_READ_CURRENT_TIMER
163
164
int read_current_timer (unsigned long * timer_val )
164
165
{
165
166
* timer_val = timer_read ();
166
167
return 0 ;
167
168
}
168
-
169
- #ifdef CONFIG_ARM_ARCH_TIMER
170
169
EXPORT_SYMBOL (read_current_timer );
171
170
#endif
172
171
@@ -759,8 +758,6 @@ void __init bcm2708_init(void)
759
758
static void timer_set_mode (enum clock_event_mode mode ,
760
759
struct clock_event_device * clk )
761
760
{
762
- unsigned long stc ;
763
-
764
761
switch (mode ) {
765
762
case CLOCK_EVT_MODE_ONESHOT : /* Leave the timer disabled, .set_next_event will enable it */
766
763
case CLOCK_EVT_MODE_SHUTDOWN :
@@ -887,7 +884,7 @@ static inline void bcm2708_init_led(void)
887
884
888
885
/* The assembly versions in delay.S don't account for core freq changing in cpufreq driver */
889
886
/* Use 1MHz system timer for busy waiting */
890
- void bcm2708_udelay (unsigned long usecs )
887
+ static void bcm2708_udelay (unsigned long usecs )
891
888
{
892
889
unsigned long start = timer_read ();
893
890
unsigned long now ;
@@ -897,7 +894,7 @@ void bcm2708_udelay(unsigned long usecs)
897
894
}
898
895
899
896
900
- void bcm2708_const_udelay (unsigned long scaled_usecs )
897
+ static void bcm2708_const_udelay (unsigned long scaled_usecs )
901
898
{
902
899
/* want /107374, this is about 3% bigger. We know usecs is less than 2000, so shouldn't overflow */
903
900
const unsigned long usecs = scaled_usecs * 10 >> 20 ;
0 commit comments