diff options
Diffstat (limited to 'arch/arm/mach-omap2/timer.c')
-rw-r--r-- | arch/arm/mach-omap2/timer.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/timer.c b/arch/arm/mach-omap2/timer.c index 5214d5bfba27..810aa1a332e1 100644 --- a/arch/arm/mach-omap2/timer.c +++ b/arch/arm/mach-omap2/timer.c | |||
@@ -36,6 +36,7 @@ | |||
36 | #include <linux/clocksource.h> | 36 | #include <linux/clocksource.h> |
37 | #include <linux/clockchips.h> | 37 | #include <linux/clockchips.h> |
38 | #include <linux/slab.h> | 38 | #include <linux/slab.h> |
39 | #include <linux/of.h> | ||
39 | 40 | ||
40 | #include <asm/mach/time.h> | 41 | #include <asm/mach/time.h> |
41 | #include <asm/smp_twd.h> | 42 | #include <asm/smp_twd.h> |
@@ -394,6 +395,11 @@ static void __init omap4_timer_init(void) | |||
394 | if (omap_rev() != OMAP4430_REV_ES1_0) { | 395 | if (omap_rev() != OMAP4430_REV_ES1_0) { |
395 | int err; | 396 | int err; |
396 | 397 | ||
398 | if (of_have_populated_dt()) { | ||
399 | twd_local_timer_of_register(); | ||
400 | return; | ||
401 | } | ||
402 | |||
397 | err = twd_local_timer_register(&twd_local_timer); | 403 | err = twd_local_timer_register(&twd_local_timer); |
398 | if (err) | 404 | if (err) |
399 | pr_err("twd_local_timer_register failed %d\n", err); | 405 | pr_err("twd_local_timer_register failed %d\n", err); |