From: Arnd Bergmann Date: Fri, 26 Sep 2014 20:19:12 +0000 (+0200) Subject: cpufreq: integrator: fix integrator_cpufreq_remove return type X-Git-Tag: fixes-for-v3.18-merge-window~47^2^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d62dbf77f7dfaa6fb455b4b9828069a11965929c;p=pandora-kernel.git 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 Cc: All applicable Signed-off-by: Rafael J. Wysocki --- Reading git-diff-tree failed