@@ -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 */
@@ -16,6 +16,7 @@
#include <linux/thermal.h>
#include <linux/slab.h>
+#ifdef CONFIG_THERMAL
#if LINUX_VERSION_IS_GEQ(3,8,0)
struct backport_thermal_ops_wrapper {
old_thermal_zone_device_ops_t ops;
@@ -171,6 +172,7 @@ void backport_thermal_zone_device_unregister(struct thermal_zone_device *dev)
EXPORT_SYMBOL_GPL(backport_thermal_zone_device_unregister);
#endif /* >= 3.8.0 */
+#endif /* CONFIG_THERMAL */
static void seq_set_overflow(struct seq_file *m)
{