]> git.karo-electronics.de Git - linux-beck.git/commit
clk: honor CLK_GET_RATE_NOCACHE in clk_set_rate
authorPeter De Schrijver <pdeschrijver@nvidia.com>
Wed, 5 Jun 2013 15:06:36 +0000 (18:06 +0300)
committerMike Turquette <mturquette@linaro.org>
Wed, 12 Jun 2013 01:04:08 +0000 (18:04 -0700)
commit34e452a152efd25d654b7bc809df429337115b03
tree24e7acc9298b2c61e7edccbad7b327d16c704d4e
parent670decdd9544eddbc2ecf14789da4845f8afdab0
clk: honor CLK_GET_RATE_NOCACHE in clk_set_rate

clk_set_rate() uses clk->rate directly. This causes problems if the clock
is marked as CLK_GET_RATE_NOCACHE. Hence call clk_get_rate() to get the
current rate.

Signed-off-by: Peter De Schrijver <pdeschrijver@nvidia.com>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
drivers/clk/clk.c