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)
commitbb25f13aed6c76df3c0004789485b7c4919ce47a
treea4f9f959513615bf67233f858ac6851dd93b3663
parent15c03dd4859ab16f9212238f29dd315654aa94f6
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