summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorDave Jones <davej@codemonkey.org.uk>2003-07-09 18:30:21 +0100
committerDave Jones <davej@tetrachloride.(none)>2003-07-09 18:30:21 +0100
commit92175044130735b3c9a0ec3567d758903972f6e2 (patch)
tree24cedcce33088bc16962b49c3b268779cef4e9b4 /kernel
parent77533ee326ff0ef9ef9e18fd8fdba91d82371c1a (diff)
[CPUFREQ] More misc cleanups.
- CPUFREQ_ALL_CPUS is not a valid argument any more, don't mention it in include/linux/cpufreq.h - without a driver->init() function a cpufreq driver isn't even loaded, so remove that check in the per-CPU initialization - whitespace and clarification changes to linux/cpufreq. All from Dominik again..
Diffstat (limited to 'kernel')
-rw-r--r--kernel/cpufreq.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/kernel/cpufreq.c b/kernel/cpufreq.c
index 435f6d2d2fd3..f4864ce54aae 100644
--- a/kernel/cpufreq.c
+++ b/kernel/cpufreq.c
@@ -337,11 +337,9 @@ static int cpufreq_add_dev (struct sys_device * sys_dev)
*/
policy = &cpufreq_driver->policy[cpu];
policy->cpu = cpu;
- if (cpufreq_driver->init) {
- ret = cpufreq_driver->init(policy);
- if (ret)
- goto out;
- }
+ ret = cpufreq_driver->init(policy);
+ if (ret)
+ goto out;
/* set default policy on this CPU */
down(&cpufreq_driver_sem);