ARM: S3C24XX: use clk_get_rate to init fclk in common_setup_clocks
authorHeiko Stuebner <heiko@sntech.de>
Fri, 14 Oct 2011 06:08:57 +0000 (15:08 +0900)
committerKukjin Kim <kgene.kim@samsung.com>
Fri, 14 Oct 2011 06:15:53 +0000 (15:15 +0900)
commit33ccedfd1b79a7cf649b2991e95bae415c013240
treea5210ff54f370adb3dd852cb1a99abaa0a7e2e27
parent866a1c8c354e613c2bf378a1cd562756d4a32e75
ARM: S3C24XX: use clk_get_rate to init fclk in common_setup_clocks

Previously the fclk rate was calculated by dividing the pll through
the divider value of the armdiv. With a real armdiv clk in place it's
possible to simply read its value, which does essentially the same.

This change makes the whole fdiv_fn function pointers supplied to
s3c2443_common_init_clocks and s3c2443_common_setup_clocks
obsolete, so remove it too.

Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
arch/arm/mach-s3c2416/clock.c
arch/arm/mach-s3c2443/clock.c
arch/arm/plat-s3c24xx/s3c2443-clock.c
arch/arm/plat-samsung/include/plat/s3c2443.h