https://github.com/torvalds/linux
Revision d62dbf77f7dfaa6fb455b4b9828069a11965929c authored by Arnd Bergmann on 26 September 2014, 20:19:12 UTC, committed by Rafael J. Wysocki on 29 September 2014, 13:36:03 UTC
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>
1 parent e65b5dd
History
Tip revision: d62dbf77f7dfaa6fb455b4b9828069a11965929c authored by Arnd Bergmann on 26 September 2014, 20:19:12 UTC
cpufreq: integrator: fix integrator_cpufreq_remove return type
Tip revision: d62dbf7

back to top