aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/thermal
diff options
context:
space:
mode:
authorEduardo Valentin <eduardo.valentin@ti.com>2013-04-23 17:48:15 -0400
committerZhang Rui <rui.zhang@intel.com>2013-04-24 12:56:19 -0400
commit910cb1e34d2fb8f9b5669a9fb452cbe1012251fe (patch)
tree8485def30505f94672ba798f901505ebae10db86 /drivers/thermal
parent7b73c993776b9f7d833dde7d09fd861508c54777 (diff)
thermal: use EXPORT_SYMBOL_GPL
Restrict usage of GPL modules. Signed-off-by: Eduardo Valentin <eduardo.valentin@ti.com> Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Diffstat (limited to 'drivers/thermal')
-rw-r--r--drivers/thermal/thermal_core.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/thermal/thermal_core.c b/drivers/thermal/thermal_core.c
index fb22ae51aac2..eb3385edeacc 100644
--- a/drivers/thermal/thermal_core.c
+++ b/drivers/thermal/thermal_core.c
@@ -446,7 +446,7 @@ void thermal_zone_device_update(struct thermal_zone_device *tz)
446 for (count = 0; count < tz->trips; count++) 446 for (count = 0; count < tz->trips; count++)
447 handle_thermal_trip(tz, count); 447 handle_thermal_trip(tz, count);
448} 448}
449EXPORT_SYMBOL(thermal_zone_device_update); 449EXPORT_SYMBOL_GPL(thermal_zone_device_update);
450 450
451static void thermal_zone_device_check(struct work_struct *work) 451static void thermal_zone_device_check(struct work_struct *work)
452{ 452{
@@ -1209,7 +1209,7 @@ free_mem:
1209 kfree(dev); 1209 kfree(dev);
1210 return result; 1210 return result;
1211} 1211}
1212EXPORT_SYMBOL(thermal_zone_bind_cooling_device); 1212EXPORT_SYMBOL_GPL(thermal_zone_bind_cooling_device);
1213 1213
1214/** 1214/**
1215 * thermal_zone_unbind_cooling_device - unbind a cooling device from a thermal zone 1215 * thermal_zone_unbind_cooling_device - unbind a cooling device from a thermal zone
@@ -1249,7 +1249,7 @@ unbind:
1249 kfree(pos); 1249 kfree(pos);
1250 return 0; 1250 return 0;
1251} 1251}
1252EXPORT_SYMBOL(thermal_zone_unbind_cooling_device); 1252EXPORT_SYMBOL_GPL(thermal_zone_unbind_cooling_device);
1253 1253
1254static void thermal_release(struct device *dev) 1254static void thermal_release(struct device *dev)
1255{ 1255{
@@ -1346,7 +1346,7 @@ unregister:
1346 device_unregister(&cdev->device); 1346 device_unregister(&cdev->device);
1347 return ERR_PTR(result); 1347 return ERR_PTR(result);
1348} 1348}
1349EXPORT_SYMBOL(thermal_cooling_device_register); 1349EXPORT_SYMBOL_GPL(thermal_cooling_device_register);
1350 1350
1351/** 1351/**
1352 * thermal_cooling_device_unregister - removes the registered thermal cooling device 1352 * thermal_cooling_device_unregister - removes the registered thermal cooling device
@@ -1406,7 +1406,7 @@ void thermal_cooling_device_unregister(struct thermal_cooling_device *cdev)
1406 device_unregister(&cdev->device); 1406 device_unregister(&cdev->device);
1407 return; 1407 return;
1408} 1408}
1409EXPORT_SYMBOL(thermal_cooling_device_unregister); 1409EXPORT_SYMBOL_GPL(thermal_cooling_device_unregister);
1410 1410
1411void thermal_cdev_update(struct thermal_cooling_device *cdev) 1411void thermal_cdev_update(struct thermal_cooling_device *cdev)
1412{ 1412{
@@ -1447,7 +1447,7 @@ void thermal_notify_framework(struct thermal_zone_device *tz, int trip)
1447{ 1447{
1448 handle_thermal_trip(tz, trip); 1448 handle_thermal_trip(tz, trip);
1449} 1449}
1450EXPORT_SYMBOL(thermal_notify_framework); 1450EXPORT_SYMBOL_GPL(thermal_notify_framework);
1451 1451
1452/** 1452/**
1453 * create_trip_attrs - create attributes for trip points 1453 * create_trip_attrs - create attributes for trip points
@@ -1699,7 +1699,7 @@ unregister:
1699 device_unregister(&tz->device); 1699 device_unregister(&tz->device);
1700 return ERR_PTR(result); 1700 return ERR_PTR(result);
1701} 1701}
1702EXPORT_SYMBOL(thermal_zone_device_register); 1702EXPORT_SYMBOL_GPL(thermal_zone_device_register);
1703 1703
1704/** 1704/**
1705 * thermal_device_unregister - removes the registered thermal zone device 1705 * thermal_device_unregister - removes the registered thermal zone device
@@ -1766,7 +1766,7 @@ void thermal_zone_device_unregister(struct thermal_zone_device *tz)
1766 device_unregister(&tz->device); 1766 device_unregister(&tz->device);
1767 return; 1767 return;
1768} 1768}
1769EXPORT_SYMBOL(thermal_zone_device_unregister); 1769EXPORT_SYMBOL_GPL(thermal_zone_device_unregister);
1770 1770
1771/** 1771/**
1772 * thermal_zone_get_zone_by_name() - search for a zone and returns its ref 1772 * thermal_zone_get_zone_by_name() - search for a zone and returns its ref
@@ -1882,7 +1882,7 @@ int thermal_generate_netlink_event(struct thermal_zone_device *tz,
1882 1882
1883 return result; 1883 return result;
1884} 1884}
1885EXPORT_SYMBOL(thermal_generate_netlink_event); 1885EXPORT_SYMBOL_GPL(thermal_generate_netlink_event);
1886 1886
1887static int genetlink_init(void) 1887static int genetlink_init(void)
1888{ 1888{