Skip to content

Commit

Permalink
[PATCH] powerpc: windfarm shall request it's sub modules
Browse files Browse the repository at this point in the history
The windfarm code, in it's current incarnation, uses request_module() to
load the various submodules it needs for a given platform so that only
the main platform control module needs to be modprobed. However, it was
missing various bits. This fixes it. In the future, we'll use some
hotplug mecanisms to try to get all of this auto-loaded on the platforms
where it matters but that isn't ready yet.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
ozbenh authored and Linus Torvalds committed Nov 16, 2006
1 parent 9716a34 commit d31e817
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
11 changes: 11 additions & 0 deletions drivers/macintosh/windfarm_pm112.c
Original file line number Diff line number Diff line change
Expand Up @@ -685,6 +685,17 @@ static int __init wf_pm112_init(void)
++nr_cores;

printk(KERN_INFO "windfarm: initializing for dual-core desktop G5\n");

#ifdef MODULE
request_module("windfarm_smu_controls");
request_module("windfarm_smu_sensors");
request_module("windfarm_smu_sat");
request_module("windfarm_lm75_sensor");
request_module("windfarm_max6690_sensor");
request_module("windfarm_cpufreq_clamp");

#endif /* MODULE */

platform_driver_register(&wf_pm112_driver);
return 0;
}
Expand Down
1 change: 1 addition & 0 deletions drivers/macintosh/windfarm_pm81.c
Original file line number Diff line number Diff line change
Expand Up @@ -788,6 +788,7 @@ static int __init wf_smu_init(void)
request_module("windfarm_smu_controls");
request_module("windfarm_smu_sensors");
request_module("windfarm_lm75_sensor");
request_module("windfarm_cpufreq_clamp");

#endif /* MODULE */
platform_driver_register(&wf_smu_driver);
Expand Down
1 change: 1 addition & 0 deletions drivers/macintosh/windfarm_pm91.c
Original file line number Diff line number Diff line change
Expand Up @@ -719,6 +719,7 @@ static int __init wf_smu_init(void)
request_module("windfarm_smu_controls");
request_module("windfarm_smu_sensors");
request_module("windfarm_lm75_sensor");
request_module("windfarm_cpufreq_clamp");

#endif /* MODULE */
platform_driver_register(&wf_smu_driver);
Expand Down

0 comments on commit d31e817

Please sign in to comment.