Commit 243dbd9c authored by Eduardo Valentin's avatar Eduardo Valentin Committed by Zhang Rui

thermal: cpu_cooling: use EXPORT_SYMBOL_GPL

Restrict the usage to GPL modules.
Signed-off-by: default avatarEduardo Valentin <eduardo.valentin@ti.com>
Acked-by: default avatarAmit Daniel Kachhap <amit.daniel@samsung.com>
Signed-off-by: default avatarZhang Rui <rui.zhang@intel.com>
parent 3b3c0748
...@@ -202,8 +202,7 @@ unsigned long cpufreq_cooling_get_level(unsigned int cpu, unsigned int freq) ...@@ -202,8 +202,7 @@ unsigned long cpufreq_cooling_get_level(unsigned int cpu, unsigned int freq)
return THERMAL_CSTATE_INVALID; return THERMAL_CSTATE_INVALID;
return (unsigned long)val; return (unsigned long)val;
} }
EXPORT_SYMBOL_GPL(cpufreq_cooling_get_level);
EXPORT_SYMBOL(cpufreq_cooling_get_level);
/** /**
* get_cpu_frequency - get the absolute value of frequency from level. * get_cpu_frequency - get the absolute value of frequency from level.
...@@ -416,7 +415,7 @@ struct thermal_cooling_device *cpufreq_cooling_register( ...@@ -416,7 +415,7 @@ struct thermal_cooling_device *cpufreq_cooling_register(
mutex_unlock(&cooling_cpufreq_lock); mutex_unlock(&cooling_cpufreq_lock);
return cool_dev; return cool_dev;
} }
EXPORT_SYMBOL(cpufreq_cooling_register); EXPORT_SYMBOL_GPL(cpufreq_cooling_register);
/** /**
* cpufreq_cooling_unregister - function to remove cpufreq cooling device. * cpufreq_cooling_unregister - function to remove cpufreq cooling device.
...@@ -440,4 +439,4 @@ void cpufreq_cooling_unregister(struct thermal_cooling_device *cdev) ...@@ -440,4 +439,4 @@ void cpufreq_cooling_unregister(struct thermal_cooling_device *cdev)
release_idr(&cpufreq_idr, cpufreq_dev->id); release_idr(&cpufreq_idr, cpufreq_dev->id);
kfree(cpufreq_dev); kfree(cpufreq_dev);
} }
EXPORT_SYMBOL(cpufreq_cooling_unregister); EXPORT_SYMBOL_GPL(cpufreq_cooling_unregister);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment