diff options
author | Zhang Rui <rui.zhang@intel.com> | 2008-04-21 04:07:13 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2008-04-29 02:44:00 -0400 |
commit | 63c4ec905d63834a97ec7dbbf0a2ec89ef5872be (patch) | |
tree | 3ad4db7e154ee2fff4020f7ca76beb0d8016b04e /include | |
parent | a01e035ebb552223c03f2d9138ffc73f2d4d3965 (diff) |
thermal: add the support for building the generic thermal as a module
Build the generic thermal driver as module "thermal_sys".
Make ACPI thermal, video, processor and fan SELECT the generic
thermal driver, as these drivers rely on it to build the sysfs I/F.
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Acked-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/thermal.h | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/include/linux/thermal.h b/include/linux/thermal.h index 90c1c191ea69..3ff680b44e81 100644 --- a/include/linux/thermal.h +++ b/include/linux/thermal.h | |||
@@ -88,24 +88,10 @@ int thermal_zone_bind_cooling_device(struct thermal_zone_device *, int, | |||
88 | struct thermal_cooling_device *); | 88 | struct thermal_cooling_device *); |
89 | int thermal_zone_unbind_cooling_device(struct thermal_zone_device *, int, | 89 | int thermal_zone_unbind_cooling_device(struct thermal_zone_device *, int, |
90 | struct thermal_cooling_device *); | 90 | struct thermal_cooling_device *); |
91 | |||
92 | #ifdef CONFIG_THERMAL | ||
93 | struct thermal_cooling_device *thermal_cooling_device_register(char *, void *, | 91 | struct thermal_cooling_device *thermal_cooling_device_register(char *, void *, |
94 | struct | 92 | struct |
95 | thermal_cooling_device_ops | 93 | thermal_cooling_device_ops |
96 | *); | 94 | *); |
97 | void thermal_cooling_device_unregister(struct thermal_cooling_device *); | 95 | void thermal_cooling_device_unregister(struct thermal_cooling_device *); |
98 | #else | ||
99 | static inline struct thermal_cooling_device | ||
100 | *thermal_cooling_device_register(char *c, void *v, | ||
101 | struct thermal_cooling_device_ops *t) | ||
102 | { | ||
103 | return NULL; | ||
104 | } | ||
105 | static inline | ||
106 | void thermal_cooling_device_unregister(struct thermal_cooling_device *t) | ||
107 | { | ||
108 | }; | ||
109 | #endif | ||
110 | 96 | ||
111 | #endif /* __THERMAL_H__ */ | 97 | #endif /* __THERMAL_H__ */ |