diff options
author | Jon Hunter <jon-hunter@ti.com> | 2013-01-29 15:23:11 -0500 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2013-02-01 17:44:10 -0500 |
commit | 61338d598eec1477455294f006793ee54eead795 (patch) | |
tree | 903356963a527f8d0085970c56704d3333345819 | |
parent | e78f96060fff8545d21360cfa5590e266a595bb9 (diff) |
ARM: OMAP2+: Fix selection of clockevent timer when using device-tree
Commit 9725f44 (ARM: OMAP: Add DT support for timer driver) added
device-tree support for selecting a clockevent timer by property.
However, the code is currently ignoring the property passed and
selecting the first available timer found. Hence, for the OMAP3 beagle
board timer-12 is not being selected as expected. Fix this problem
by ensuring the timer property is passed to omap_get_timer_dt().
Signed-off-by: Jon Hunter <jon-hunter@ti.com>
Acked-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Tested-by: Vaibhav Bedia <vaibhav.bedia@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
-rw-r--r-- | arch/arm/mach-omap2/timer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/timer.c b/arch/arm/mach-omap2/timer.c index b8ad6e632bb8..265de51b43d9 100644 --- a/arch/arm/mach-omap2/timer.c +++ b/arch/arm/mach-omap2/timer.c | |||
@@ -228,7 +228,7 @@ static int __init omap_dm_timer_init_one(struct omap_dm_timer *timer, | |||
228 | int r = 0; | 228 | int r = 0; |
229 | 229 | ||
230 | if (of_have_populated_dt()) { | 230 | if (of_have_populated_dt()) { |
231 | np = omap_get_timer_dt(omap_timer_match, NULL); | 231 | np = omap_get_timer_dt(omap_timer_match, property); |
232 | if (!np) | 232 | if (!np) |
233 | return -ENODEV; | 233 | return -ENODEV; |
234 | 234 | ||