ARM: shmobile: Set clock frequency in HZ from OF nodes
authorSimon Horman <horms+renesas@verge.net.au>
Tue, 13 May 2014 06:59:18 +0000 (15:59 +0900)
committerStephane Desneux <stephane.desneux@open.eurogiciel.org>
Wed, 4 Feb 2015 10:15:16 +0000 (11:15 +0100)
commit704dbecff76b3a8d57526417f366a44a3baf9c24
treefcb9db706c2073754cd9e22a9a9d1eb85db48d5b
parent058c41f701017fb72be3524d1a5ad0f32ad04181
ARM: shmobile: Set clock frequency in HZ from OF nodes

shmobile_init_delay() looks for OF "clock-frequency" to determine
the delay which is set by calling shmobile_setup_delay().

Unfortunately this seems to be incorrect in detail as
"clock-frequency" node values are in HZ whereas the frequency
argument to shmobile_setup_delay() is in MHz.

Provide a variant of shmobile_setup_delay() that accepts HZ to
correct this problem.

Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
(cherry picked from commit f492b81777c93b33afe892b424e022022b5bc297)
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm/mach-shmobile/timer.c