Skip to content

Commit f4c5924

Browse files
morimotozhang-rui
authored andcommitted
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>
1 parent d0b7306 commit f4c5924

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/thermal/thermal_hwmon.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,7 @@ int thermal_add_hwmon_sysfs(struct thermal_zone_device *tz)
232232

233233
return result;
234234
}
235+
EXPORT_SYMBOL_GPL(thermal_add_hwmon_sysfs);
235236

236237
void thermal_remove_hwmon_sysfs(struct thermal_zone_device *tz)
237238
{
@@ -270,3 +271,4 @@ void thermal_remove_hwmon_sysfs(struct thermal_zone_device *tz)
270271
hwmon_device_unregister(hwmon->device);
271272
kfree(hwmon);
272273
}
274+
EXPORT_SYMBOL_GPL(thermal_remove_hwmon_sysfs);

0 commit comments

Comments
 (0)