]> git.baikalelectronics.ru Git - kernel.git/commit
cpufreq: SPEAr: Fix incorrect variable type
authorSachin Kamat <sachin.kamat@linaro.org>
Thu, 26 Sep 2013 05:26:42 +0000 (10:56 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 30 Sep 2013 18:05:43 +0000 (20:05 +0200)
commitb59bb29f528dd2c33e6cde51d16f6cb0cf0a288f
treea4f9f959513615bf67233f858ac6851dd93b3663
parent065f53a8c7da184ea1803e0dbc86865d5e221b37
cpufreq: SPEAr: Fix incorrect variable type

'clk_round_rate' returns a negative error code upon failure. This
will never get detected by unsigned 'newfreq'. Make it signed.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/spear-cpufreq.c