ARM: OMAP2+: Fix selection of clockevent timer when using device-tree
authorJon Hunter <jon-hunter@ti.com>
Tue, 29 Jan 2013 20:23:11 +0000 (14:23 -0600)
committerTony Lindgren <tony@atomide.com>
Fri, 1 Feb 2013 22:44:10 +0000 (14:44 -0800)
commit61338d598eec1477455294f006793ee54eead795
tree903356963a527f8d0085970c56704d3333345819
parente78f96060fff8545d21360cfa5590e266a595bb9
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>
arch/arm/mach-omap2/timer.c