clk: clk_set_rate() must fail if CLK_SET_RATE_GATE is set and clk is enabled
commit0e1c03017549a9df513622b3f15ff38eb8d35a62
authorViresh Kumar <viresh.kumar@st.com>
Wed, 11 Apr 2012 10:33:42 +0000 (11 16:03 +0530)
committerMike Turquette <mturquette@linaro.org>
Wed, 2 May 2012 01:13:38 +0000 (1 18:13 -0700)
treef2fc7de20e598493916a27fbb7b6ba8104850a2f
parent0197b3ea0f66cd2a11417f58fe1812858ea77908
clk: clk_set_rate() must fail if CLK_SET_RATE_GATE is set and clk is enabled

This is well documented but isn't implemented. clk_set_rate() must check if
flags have CLK_SET_RATE_GATE bit set and is enabled too.

Signed-off-by: Viresh Kumar <viresh.kumar@st.com>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
drivers/clk/clk.c