summaryrefslogtreecommitdiff
path: root/backport/backport-include
diff options
context:
space:
mode:
Diffstat (limited to 'backport/backport-include')
-rw-r--r--backport/backport-include/linux/thermal.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/backport/backport-include/linux/thermal.h b/backport/backport-include/linux/thermal.h
index 108a8cfe..8874e196 100644
--- a/backport/backport-include/linux/thermal.h
+++ b/backport/backport-include/linux/thermal.h
@@ -3,6 +3,7 @@
#include_next <linux/thermal.h>
#include <linux/version.h>
+#ifdef CONFIG_THERMAL
#if LINUX_VERSION_IS_LESS(3,8,0)
#include <linux/errno.h>
@@ -110,5 +111,6 @@ void backport_thermal_zone_device_unregister(struct thermal_zone_device *);
#endif /* LINUX_VERSION_IS_LESS(4,3,0) */
#endif /* ! < 3.8.0 */
+#endif /* CONFIG_THERMAL */
#endif /* __BACKPORT_LINUX_THERMAL_H */