ARM: OMAP: dmtimer: check for fixed timers during config
authorSuman Anna <s-anna@ti.com>
Mon, 5 Oct 2015 23:28:21 +0000 (18:28 -0500)
committerTony Lindgren <tony@atomide.com>
Mon, 30 Nov 2015 21:18:23 +0000 (13:18 -0800)
commitea05d2eaf66543e1305a6eb0f1a46db1257731c4
tree2a5b46da46e8c80035a6881a5bec0c75f87a23cc
parentb6a89194182fe7a33d383463b8b9af6e117d8146
ARM: OMAP: dmtimer: check for fixed timers during config

The omap_dm_timer_set_source() function provides a means for client
users to configure the mux parent for a GPTimer's functional clock.
However, not all timers are configurable (Eg: Timer12 on DRA7 is fed
by an internal 32k oscillator clock, and does not have configurable
parent clocks). So, check for such cases and proceed with out throwing
an error.

Signed-off-by: Suman Anna <s-anna@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/plat-omap/dmtimer.c