diff options
author | viresh kumar <viresh.kumar@st.com> | 2011-05-20 09:34:18 +0200 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2011-05-20 23:31:40 +0200 |
commit | b997f6e2cba28e5361aaa6ac008f052eccd994e6 (patch) | |
tree | 77970fd7099ff743055ca254d5cdf1b6e75d2db6 /arch/arm/plat-spear | |
parent | Merge branch 'syscore' of git://git.kernel.org/pub/scm/linux/kernel/git/rafae... (diff) | |
download | linux-b997f6e2cba28e5361aaa6ac008f052eccd994e6.tar.xz linux-b997f6e2cba28e5361aaa6ac008f052eccd994e6.zip |
ARM: 6926/1: SPEAr clock: Define common clk_init routine in plat/clock.c
Define common clk_init routine in plat/clock.c for calling recalc_root_clocks.
This routine will be used for any common code across all machine families.
Whereas family specific spear*xx_clk_init routines will be used for family
specific code.
Signed-off-by: Viresh Kumar <viresh.kumar@st.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/plat-spear')
-rw-r--r-- | arch/arm/plat-spear/clock.c | 5 | ||||
-rw-r--r-- | arch/arm/plat-spear/include/plat/clock.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/plat-spear/clock.c b/arch/arm/plat-spear/clock.c index bdbd7ec9cb6b..6fa474cb398e 100644 --- a/arch/arm/plat-spear/clock.c +++ b/arch/arm/plat-spear/clock.c @@ -903,6 +903,11 @@ void recalc_root_clocks(void) spin_unlock_irqrestore(&clocks_lock, flags); } +void __init clk_init(void) +{ + recalc_root_clocks(); +} + #ifdef CONFIG_DEBUG_FS /* * debugfs support to trace clock tree hierarchy and attributes diff --git a/arch/arm/plat-spear/include/plat/clock.h b/arch/arm/plat-spear/include/plat/clock.h index 2ae6606930a6..e4cc7877b0be 100644 --- a/arch/arm/plat-spear/include/plat/clock.h +++ b/arch/arm/plat-spear/include/plat/clock.h @@ -224,6 +224,7 @@ struct clcd_rate_tbl { }; /* platform specific clock functions */ +void __init clk_init(void); void clk_register(struct clk_lookup *cl); void recalc_root_clocks(void); |