SPEAr: Call clk_prepare() before calling clk_enable
authorViresh Kumar <viresh.kumar@st.com>
Mon, 16 Apr 2012 08:26:18 +0000 (13:56 +0530)
committerArnd Bergmann <arnd@arndb.de>
Sat, 12 May 2012 19:19:28 +0000 (21:19 +0200)
commitf8abc080d33e69dfa2c3dd0f84c31832e2679091
treedc01d0a82f07f3e906ad1e0ee646941de5d59483
parenta45896bd3a4b7beb571fa704efa7c2782b791093
SPEAr: Call clk_prepare() before calling clk_enable

With common clock framework, it is must to call clk_{un}prepare() before/after
clk_{dis}enable. This patch fixes this for SPEAr timer.

Signed-off-by: Viresh Kumar <viresh.kumar@st.com>
Reviewed-by: Mike Turquette <mturquette@linaro.org>
arch/arm/plat-spear/time.c