linux-omap.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 2/9] ARM: OMAP2+: Remove unused max number of timers definition
@ 2012-05-15 23:35 Jon Hunter
  2012-05-17 20:07 ` Kevin Hilman
  0 siblings, 1 reply; 2+ messages in thread
From: Jon Hunter @ 2012-05-15 23:35 UTC (permalink / raw)
  To: linux-omap; +Cc: Tony Lindgren, Benoit Cousson, Jon Hunter

From: Jon Hunter <jon-hunter@ti.com>

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.

Signed-off-by: Jon Hunter <jon-hunter@ti.com>
---
 arch/arm/mach-omap2/timer.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/arch/arm/mach-omap2/timer.c b/arch/arm/mach-omap2/timer.c
index 840929b..c030dfe 100644
--- a/arch/arm/mach-omap2/timer.c
+++ b/arch/arm/mach-omap2/timer.c
@@ -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 */
-- 
1.7.5.4


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH 2/9] ARM: OMAP2+: Remove unused max number of timers definition
  2012-05-15 23:35 [PATCH 2/9] ARM: OMAP2+: Remove unused max number of timers definition Jon Hunter
@ 2012-05-17 20:07 ` Kevin Hilman
  0 siblings, 0 replies; 2+ messages in thread
From: Kevin Hilman @ 2012-05-17 20:07 UTC (permalink / raw)
  To: Jon Hunter; +Cc: linux-omap, Tony Lindgren, Benoit Cousson

Jon Hunter <jon-hunter@ti.com> writes:

> From: Jon Hunter <jon-hunter@ti.com>
>
> 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

> Signed-off-by: Jon Hunter <jon-hunter@ti.com>
> ---
>  arch/arm/mach-omap2/timer.c |    3 ---
>  1 files changed, 0 insertions(+), 3 deletions(-)
>
> diff --git a/arch/arm/mach-omap2/timer.c b/arch/arm/mach-omap2/timer.c
> index 840929b..c030dfe 100644
> --- a/arch/arm/mach-omap2/timer.c
> +++ b/arch/arm/mach-omap2/timer.c
> @@ -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 */

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-05-17 20:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-15 23:35 [PATCH 2/9] ARM: OMAP2+: Remove unused max number of timers definition Jon Hunter
2012-05-17 20:07 ` Kevin Hilman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).