diff options
author | Johannes Berg <johannes.berg@intel.com> | 2017-02-07 14:13:38 +0100 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2017-02-07 15:07:22 +0100 |
commit | c746300c5625d5a9f395dd6077be027c80b28965 (patch) | |
tree | 34060a7b4d1ca773e1dbfc40953c77433d91b997 /backport/compat | |
parent | f75286f723c2e04f72b99da93f22df6d48bc8002 (diff) |
backports: disable thermal for kernels < 3.8
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'backport/compat')
-rw-r--r-- | backport/compat/backport-4.3.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/backport/compat/backport-4.3.c b/backport/compat/backport-4.3.c index eff3e7f4..c2bf1b5c 100644 --- a/backport/compat/backport-4.3.c +++ b/backport/compat/backport-4.3.c @@ -16,6 +16,7 @@ #include <linux/thermal.h> #include <linux/slab.h> +#if LINUX_VERSION_IS_GEQ(3,8,0) struct backport_thermal_ops_wrapper { old_thermal_zone_device_ops_t ops; struct thermal_zone_device_ops *driver_ops; @@ -169,6 +170,8 @@ void backport_thermal_zone_device_unregister(struct thermal_zone_device *dev) } EXPORT_SYMBOL_GPL(backport_thermal_zone_device_unregister); +#endif /* >= 3.8.0 */ + static void seq_set_overflow(struct seq_file *m) { m->count = m->size; |