|
@@ -142,6 +142,7 @@ int thermal_add_hwmon_sysfs(struct thermal_zone_device *tz)
|
|
|
|
|
|
INIT_LIST_HEAD(&hwmon->tz_list);
|
|
INIT_LIST_HEAD(&hwmon->tz_list);
|
|
strlcpy(hwmon->type, tz->type, THERMAL_NAME_LENGTH);
|
|
strlcpy(hwmon->type, tz->type, THERMAL_NAME_LENGTH);
|
|
|
|
+ strreplace(hwmon->type, '-', '_');
|
|
hwmon->device = hwmon_device_register_with_info(NULL, hwmon->type,
|
|
hwmon->device = hwmon_device_register_with_info(NULL, hwmon->type,
|
|
hwmon, NULL, NULL);
|
|
hwmon, NULL, NULL);
|
|
if (IS_ERR(hwmon->device)) {
|
|
if (IS_ERR(hwmon->device)) {
|