OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
27b8fe8
)
cpufreq: qoriq: Remove __exit macro from .exit callback
author
Jia Hongtao
<hongtao.jia@nxp.com>
Tue, 19 Apr 2016 09:00:06 +0000
(17:00 +0800)
committer
Rafael J. Wysocki
<rafael.j.wysocki@intel.com>
Mon, 25 Apr 2016 14:07:02 +0000
(16:07 +0200)
.exit callback (qoriq_cpufreq_cpu_exit()) is also used during suspend.
So __exit macro should be removed or the function will be discarded.
Signed-off-by: Jia Hongtao <hongtao.jia@nxp.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/qoriq-cpufreq.c
patch
|
blob
|
history
diff --git
a/drivers/cpufreq/qoriq-cpufreq.c
b/drivers/cpufreq/qoriq-cpufreq.c
index
8b77589
..
e029079
100644
(file)
--- a/
drivers/cpufreq/qoriq-cpufreq.c
+++ b/
drivers/cpufreq/qoriq-cpufreq.c
@@
-301,7
+301,7
@@
err_np:
return -ENODEV;
}
-static int
__exit
qoriq_cpufreq_cpu_exit(struct cpufreq_policy *policy)
+static int qoriq_cpufreq_cpu_exit(struct cpufreq_policy *policy)
{
struct cpu_data *data = policy->driver_data;
@@
-348,7
+348,7
@@
static struct cpufreq_driver qoriq_cpufreq_driver = {
.name = "qoriq_cpufreq",
.flags = CPUFREQ_CONST_LOOPS,
.init = qoriq_cpufreq_cpu_init,
- .exit =
__exit_p(qoriq_cpufreq_cpu_exit)
,
+ .exit =
qoriq_cpufreq_cpu_exit
,
.verify = cpufreq_generic_frequency_table_verify,
.target_index = qoriq_cpufreq_target,
.get = cpufreq_generic_get,