]> git.baikalelectronics.ru Git - kernel.git/commit
cpufreq: OMAP: Fix compilation error 'r & ret undeclared'
authorviresh kumar <viresh.kumar@linaro.org>
Wed, 13 Nov 2013 10:09:23 +0000 (15:39 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 13 Nov 2013 23:52:48 +0000 (00:52 +0100)
commitc470c5870969973be0d4ced6e8ecc8588256854e
tree54bc6eb2272d06be0b3528b8f1f88996114d6f21
parent8727f6a96ffaf73b0c6e0c7cddea68c2d9549cc8
cpufreq: OMAP: Fix compilation error 'r & ret undeclared'

With a recent change "71c49c6 cpufreq: move freq change notifications to cpufreq
core" few variables (r & ret) are removed by mistake and hence these warnings:

drivers/cpufreq/omap-cpufreq.c: In function omap_target:
drivers/cpufreq/omap-cpufreq.c:64:2: error: ret undeclared (first use in this function)
drivers/cpufreq/omap-cpufreq.c:64:2: note: each undeclared identifier is reported only once for each function it appears in
drivers/cpufreq/omap-cpufreq.c:94:3: error: r undeclared (first use in this function)
drivers/cpufreq/omap-cpufreq.c:116:1: warning: control reaches end of non-void function [-Wreturn-type]

Lets fix them by declaring those variables again.

Fixes: 71c49c667b3d (cpufreq: move freq change notifications to cpufreq core)
Reported-by: Sebastian Capella <sebastian.capella@linaro.org>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/omap-cpufreq.c