Skip to contentSkip to conversation

ARM: OMAP2+: Remove unused max number of timers definition

PATCH Superseded Jon Hunter 2 participants 2 messages May 15, 2012 – May 17, 2012

Subsystems (3)

v1 of 4 Superseded Latest is v4 →

lore
Share & tools
lore

Jon Hunter

author
#0 lore raw

PATCH 2/9 ARM: OMAP2+: Remove unused max number of timers definition

From: Jon Hunter <[email protected]>

The OMAP2+ timer code has a definition for the maximum number of timers that OMAP2+ devices have. This defintion is not used anywhere in the code and appears to be left over. Furthermore the definition is not accurate for OMAP4 devices that only have 11 timers available because the 12th timer is reserved as a secure timer. Therefore, remove this definition.

---
 arch/arm/mach-omap2/timer.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)
arch/arm/mach-omap2/timer.c +0 -3
index 840929b..c030dfe 100644
@@ -69,9 +69,6 @@
 #define OMAP3_SECURE_TIMER	1
 #endif
 
-/* MAX_GPTIMER_ID: number of GPTIMERs on the chip */
-#define MAX_GPTIMER_ID		12
-
 static u32 sys_timer_reserved;
 
 /* Clockevent code */
Signature · 1 line
1.7.5.4
#1 lore raw
Quoted 7 lines · Jon Hunter

From: Jon Hunter <[email protected]>

The OMAP2+ timer code has a definition for the maximum number of timers that OMAP2+ devices have. This defintion is not used anywhere in the code and appears to be left over. Furthermore the definition is not accurate for OMAP4 devices that only have 11 timers available because the 12th timer is reserved as a secure timer. Therefore, remove this definition.

changelog nit: the 12th timer is secure on OMAP3 HS devices also.

Kevin

Quoted 19 lines
---
 arch/arm/mach-omap2/timer.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)
arch/arm/mach-omap2/timer.c +0 -3
index 840929b..c030dfe 100644
@@ -69,9 +69,6 @@
 #define OMAP3_SECURE_TIMER	1
 #endif
 
-/* MAX_GPTIMER_ID: number of GPTIMERs on the chip */
-#define MAX_GPTIMER_ID		12
-
 static u32 sys_timer_reserved;
 
 /* Clockevent code */