Re: [RFC/PATCH-v4.2-rc6 4/5] arm: omap2: timer: simplify omap4_local_timer_init()

2015-08-12 Thread Felipe Balbi
On Wed, Aug 12, 2015 at 12:14:24AM -0700, Tony Lindgren wrote:
 * Felipe Balbi ba...@ti.com [150810 14:44]:
  all users of omap4_local_timer_init() are already
  DT-only, so we can remove the check for having
  DTB or not.
  
  While at that, fix a typo in comment.
 
 We already have d1dabab2841d (ARM: OMAP2+: Clean up
 omap4_local_timer_init) in Linux next reviewed-by you :)

hehe, I had forgotten about that sorry. I'll rebase this on today's
next and resend the series. I'll also test $subject without the other
patches.

-- 
balbi


signature.asc
Description: Digital signature


Re: [RFC/PATCH-v4.2-rc6 4/5] arm: omap2: timer: simplify omap4_local_timer_init()

2015-08-12 Thread Tony Lindgren
* Felipe Balbi ba...@ti.com [150810 14:44]:
 all users of omap4_local_timer_init() are already
 DT-only, so we can remove the check for having
 DTB or not.
 
 While at that, fix a typo in comment.

We already have d1dabab2841d (ARM: OMAP2+: Clean up
omap4_local_timer_init) in Linux next reviewed-by you :)

Tony
--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[RFC/PATCH-v4.2-rc6 4/5] arm: omap2: timer: simplify omap4_local_timer_init()

2015-08-10 Thread Felipe Balbi
all users of omap4_local_timer_init() are already
DT-only, so we can remove the check for having
DTB or not.

While at that, fix a typo in comment.

Signed-off-by: Felipe Balbi ba...@ti.com
---
 arch/arm/mach-omap2/timer.c | 16 
 1 file changed, 4 insertions(+), 12 deletions(-)

diff --git a/arch/arm/mach-omap2/timer.c b/arch/arm/mach-omap2/timer.c
index cac46d852da1..88d39f98e7ff 100644
--- a/arch/arm/mach-omap2/timer.c
+++ b/arch/arm/mach-omap2/timer.c
@@ -649,23 +649,15 @@ static OMAP_SYS_32K_TIMER_INIT(4, 1, timer_32k_ck, 
ti,timer-alwon,
 
 #ifdef CONFIG_ARCH_OMAP4
 #ifdef CONFIG_HAVE_ARM_TWD
-static DEFINE_TWD_LOCAL_TIMER(twd_local_timer, OMAP44XX_LOCAL_TWD_BASE, 29);
 void __init omap4_local_timer_init(void)
 {
omap4_sync32k_timer_init();
-   /* Local timers are not supprted on OMAP4430 ES1.0 */
-   if (omap_rev() != OMAP4430_REV_ES1_0) {
-   int err;
 
-   if (of_have_populated_dt()) {
-   clocksource_of_init();
-   return;
-   }
+   /* Local timers are not supported on OMAP4430 ES1.0 */
+   if (omap_rev() == OMAP4430_REV_ES1_0)
+   return;
 
-   err = twd_local_timer_register(twd_local_timer);
-   if (err)
-   pr_err(twd_local_timer_register failed %d\n, err);
-   }
+   clocksource_of_init();
 }
 #else
 void __init omap4_local_timer_init(void)
-- 
2.5.0

--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html