diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2016-07-04 03:19:32 -0400 |
---|---|---|
committer | Zhang Rui <rui.zhang@intel.com> | 2016-08-07 22:57:39 -0400 |
commit | f4c592439b144ef1de66eac764140643a54099eb (patch) | |
tree | a8c3413a08d45a96b8c060ca6670396a56378717 | |
parent | d0b7306d203c82e7c04d6eb066ca4898f016ebdd (diff) |
thermal: hwmon: EXPORT_SYMBOL_GPL for thermal hwmon sysfs
thermal_add_hwmon_sysfs()/thermal_remove_hwmon_sysfs() need
EXPORT_SYMBOL_GPL(). Otherwise we will have ERROR
>> ERROR: "thermal_remove_hwmon_sysfs" [drivers/thermal/rcar_thermal.ko] undefined!
>> ERROR: "thermal_add_hwmon_sysfs" [drivers/thermal/rcar_thermal.ko] undefined!
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
-rw-r--r-- | drivers/thermal/thermal_hwmon.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/thermal/thermal_hwmon.c b/drivers/thermal/thermal_hwmon.c index 06fd2ed9ef9d..c41c7742903a 100644 --- a/drivers/thermal/thermal_hwmon.c +++ b/drivers/thermal/thermal_hwmon.c | |||
@@ -232,6 +232,7 @@ int thermal_add_hwmon_sysfs(struct thermal_zone_device *tz) | |||
232 | 232 | ||
233 | return result; | 233 | return result; |
234 | } | 234 | } |
235 | EXPORT_SYMBOL_GPL(thermal_add_hwmon_sysfs); | ||
235 | 236 | ||
236 | void thermal_remove_hwmon_sysfs(struct thermal_zone_device *tz) | 237 | void thermal_remove_hwmon_sysfs(struct thermal_zone_device *tz) |
237 | { | 238 | { |
@@ -270,3 +271,4 @@ void thermal_remove_hwmon_sysfs(struct thermal_zone_device *tz) | |||
270 | hwmon_device_unregister(hwmon->device); | 271 | hwmon_device_unregister(hwmon->device); |
271 | kfree(hwmon); | 272 | kfree(hwmon); |
272 | } | 273 | } |
274 | EXPORT_SYMBOL_GPL(thermal_remove_hwmon_sysfs); | ||