ARM: timer-sp: allow getting timer1 clock from DT to fallback to legacy clock
authorRob Herring <robh@kernel.org>
Thu, 29 May 2014 21:01:34 +0000 (16:01 -0500)
committerRob Herring <robh@kernel.org>
Tue, 24 Jun 2014 19:16:03 +0000 (14:16 -0500)
commit1bde9906414b46b6922464e7c91dd815e5f217b3
tree944e7d854bda6a6b4380e9dff681ead543cef67a
parentf27e861f7bb79501cedf486af9347052f9bcfc70
ARM: timer-sp: allow getting timer1 clock from DT to fallback to legacy clock

The sp804 clocks may be specified in DT, but the kernel may still be using
legacy clocks. This is handled if a single clock for sp804 is present,
but not when 3 clocks are present.

This prevents Versatile platforms from breaking when the DT has clocks
added.

Signed-off-by: Rob Herring <robh@kernel.org>
Cc: Russell King <linux@arm.linux.org.uk>
arch/arm/common/timer-sp.c