cpufreq: integrator: fix integrator_cpufreq_remove return type
authorArnd Bergmann <arnd@arndb.de>
Fri, 26 Sep 2014 20:19:12 +0000 (22:19 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 29 Sep 2014 13:36:03 +0000 (15:36 +0200)
commitd62dbf77f7dfaa6fb455b4b9828069a11965929c
tree2c4f1c60f6ff7a1cea0be9d7b6f3b75aff576361
parente65b5ddba84634f31d42dfd86013f4c6be5e9e32
cpufreq: integrator: fix integrator_cpufreq_remove return type

When building this driver as a module, we get a helpful warning
about the return type:

drivers/cpufreq/integrator-cpufreq.c:232:2: warning: initialization from incompatible pointer type
  .remove = __exit_p(integrator_cpufreq_remove),

If the remove callback returns void, the caller gets an undefined
value as it expects an integer to be returned. This fixes the
problem by passing down the value from cpufreq_unregister_driver.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: All applicable <stable@vger.kernel.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/integrator-cpufreq.c