ARM: imx: provide twd clock lookup from device tree
authorShawn Guo <shawn.guo@linaro.org>
Wed, 3 Apr 2013 15:50:09 +0000 (23:50 +0800)
committerShawn Guo <shawn.guo@linaro.org>
Tue, 9 Apr 2013 11:46:31 +0000 (19:46 +0800)
commit2bb4b70b1dbb45f0c1a3ba98066e6635d8aa3fe0
tree46a5a30942800d75aa72ccfb4890568d6f610359
parent75498083e25e96932ad998ffdeadb17234c68d3a
ARM: imx: provide twd clock lookup from device tree

While booting from device tree, imx6q used to provide twd clock lookup
by calling clk_register_clkdev() in clock driver.  However, the commit
bd60345 (ARM: use device tree to get smp_twd clock) forces DT boot to
look up the clock from device tree.  It causes the failure below when
twd driver tries to get the clock, and hence kernel has to calibrate the
local timer frequency.

 smp_twd: clock not found -2
 ...
 Calibrating local timer... 396.13MHz.

Fix the regression by providing twd clock lookup from device tree, and
remove the unused twd clk_register_clkdev() call from clock driver.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
arch/arm/boot/dts/imx6qdl.dtsi
arch/arm/mach-imx/clk-imx6q.c