Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions drivers/thermal/armada_thermal.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#include <linux/interrupt.h>

#include "thermal_core.h"
#include "thermal_hwmon.h"

/* Thermal Manager Control and Status Register */
#define PMU_TDC0_SW_RST_MASK (0x1 << 1)
Expand Down Expand Up @@ -939,6 +940,10 @@ static int armada_thermal_probe(struct platform_device *pdev)
*/
if (irq > 0 && !priv->overheat_sensor)
armada_configure_overheat_int(priv, tz, sensor->id);

if (devm_thermal_add_hwmon_sysfs(tz))
dev_warn(&pdev->dev,
"Failed to add hwmon sysfs attributes\n");
}

/* Just complain if no overheat interrupt was set up */
Expand Down