clocksource: armada-370-xp: Get reference fixed-clock by name
authorEzequiel Garcia <ezequiel.garcia@free-electrons.com>
Tue, 20 Aug 2013 15:45:53 +0000 (12:45 -0300)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Mon, 2 Sep 2013 19:44:52 +0000 (21:44 +0200)
commit5e9fe6cb1ba5ad321473e7b9c39fbe164129520d
tree3b17125e814bfbc21f82fb4f580d8d820024e566
parentec8e51120a5b167e22ee29f4f427a0cb66eb445b
clocksource: armada-370-xp: Get reference fixed-clock by name

The Armada XP timer has two mandatory clock inputs: nbclk and refclk,
as specified by the device-tree binding.

This commit fixes the clock selection. Instead of hard-coding the clock
rate for the 25 MHz reference fixed-clock, obtain the clock by its name.

Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Acked-by: Jason Cooper <jason@lakedaemon.net>
Acked-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
drivers/clocksource/time-armada-370-xp.c