]> git.karo-electronics.de Git - linux-beck.git/commitdiff
thermal: cpu_cooling: use EXPORT_SYMBOL_GPL
authorEduardo Valentin <eduardo.valentin@ti.com>
Wed, 17 Apr 2013 17:11:57 +0000 (17:11 +0000)
committerZhang Rui <rui.zhang@intel.com>
Wed, 24 Apr 2013 16:34:37 +0000 (00:34 +0800)
Restrict the usage to GPL modules.

Signed-off-by: Eduardo Valentin <eduardo.valentin@ti.com>
Acked-by: Amit Daniel Kachhap <amit.daniel@samsung.com>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
drivers/thermal/cpu_cooling.c

index 82829d6747203fdae258f9b35b06363fc0e41094..fe0a8f5932839cb2d4c4cbc4e8038ee3a90751ff 100644 (file)
@@ -202,8 +202,7 @@ unsigned long cpufreq_cooling_get_level(unsigned int cpu, unsigned int freq)
                return THERMAL_CSTATE_INVALID;
        return (unsigned long)val;
 }
-
-EXPORT_SYMBOL(cpufreq_cooling_get_level);
+EXPORT_SYMBOL_GPL(cpufreq_cooling_get_level);
 
 /**
  * get_cpu_frequency - get the absolute value of frequency from level.
@@ -416,7 +415,7 @@ struct thermal_cooling_device *cpufreq_cooling_register(
        mutex_unlock(&cooling_cpufreq_lock);
        return cool_dev;
 }
-EXPORT_SYMBOL(cpufreq_cooling_register);
+EXPORT_SYMBOL_GPL(cpufreq_cooling_register);
 
 /**
  * cpufreq_cooling_unregister - function to remove cpufreq cooling device.
@@ -440,4 +439,4 @@ void cpufreq_cooling_unregister(struct thermal_cooling_device *cdev)
        release_idr(&cpufreq_idr, cpufreq_dev->id);
        kfree(cpufreq_dev);
 }
-EXPORT_SYMBOL(cpufreq_cooling_unregister);
+EXPORT_SYMBOL_GPL(cpufreq_cooling_unregister);