MIPS: ath79: Use ath79_get_sys_clk_rate to get basic clock rates
authorGabor Juhos <juhosg@openwrt.org>
Wed, 28 Aug 2013 08:41:45 +0000 (10:41 +0200)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 3 Sep 2013 21:22:17 +0000 (23:22 +0200)
commit59a8c10b253358bebb263540e7ad67e986d66277
treeb9f2053c3d08da26ab2b7755940b94aa8e7a48a1
parent2310780244d5c3b6cc843d4cc0b63332016678a0
MIPS: ath79: Use ath79_get_sys_clk_rate to get basic clock rates

Instead of accessing the rate field of the static
clock devices directly, use the recently introduced
helper function to get the rate of the basic clocks.

The static ath79_{ahb,cpu,ddr,ref}_clk variables
will be removed by a subsequent patch. The actual
change is in preparation of that.

Also move the clock frequency printing code into
the plat_time_init function. We are getting the
cpu clock rate there already so we can save an
extra call of the helper.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/5782/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/ath79/clock.c
arch/mips/ath79/setup.c